Debian Codegraph @

modules/lsp-runtime-lib/include/lsp-plug.in/fmt/xpm/Header.h

raw
1 /*
2 * Copyright (C) 2026 Linux Studio Plugins Project <https://lsp-plug.in/>
3 * (C) 2026 Vladimir Sadovnikov <[email protected]>
4 *
5 * This file is part of lsp-runtime-lib
6 * Created on: 20 янв. 2026 г.
7 *
8 * lsp-runtime-lib is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * any later version.
12 *
13 * lsp-runtime-lib is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with lsp-runtime-lib. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22 #ifndef LSP_PLUG_IN_FMT_XPM_HEADER_H_
23 #define LSP_PLUG_IN_FMT_XPM_HEADER_H_
24
25 #include <lsp-plug.in/runtime/version.h>
26
27 #include <lsp-plug.in/common/types.h>
28
29 namespace lsp
30 {
31 namespace xpm
32 {
33 enum version_t
34 {
35 VERSION_XPM1,
36 VERSION_XPM2,
37 VERSION_XPM3
38 };
39
40 typedef struct header_t
41 {
42 version_t version; // Version of XPM
43 size_t width; // Image width
44 size_t height; // Image height
45 size_t num_colors; // Number of colors
46 size_t chars_per_pixel; // Number of characters per one pixel
47 size_t x_hotspot; // Image X hot-spot
48 size_t y_hotspot; // Image Y hot-spot
49 bool has_extensions; // Presense of extensions
50 } header_t;
51 } /* namespace xpm */
52 } /* namespace lsp */
53
54
55 #endif /* LSP_PLUG_IN_FMT_XPM_HEADER_H_ */