comparison libmlk-ui/mlk/ui/ui.h @ 517:6e8f6640e05b

misc: use extern C manually
author David Demelier <markand@malikania.fr>
date Sat, 04 Mar 2023 14:23:59 +0100
parents d49a05e7a5b5
children 88e9bd420a28
comparison
equal deleted inserted replaced
516:6af0524913b3 517:6e8f6640e05b
19 #ifndef MLK_UI_UI_H 19 #ifndef MLK_UI_UI_H
20 #define MLK_UI_UI_H 20 #define MLK_UI_UI_H
21 21
22 #include <mlk/core/core.h> 22 #include <mlk/core/core.h>
23 23
24 MLK_CORE_BEGIN_DECLS
25
26 /* TODO: make this a global variable to allow modification of default theme. */ 24 /* TODO: make this a global variable to allow modification of default theme. */
27 /* https://lospec.com/palette-list/duel */ 25 /* https://lospec.com/palette-list/duel */
28 #define MLK_UI_COLOR_TEXT 0x222323ff 26 #define MLK_UI_COLOR_TEXT 0x222323ff
29 #define MLK_UI_COLOR_SELECTED 0x55b67dff 27 #define MLK_UI_COLOR_SELECTED 0x55b67dff
30 #define MLK_UI_COLOR_BG 0xf5f7faff 28 #define MLK_UI_COLOR_BG 0xf5f7faff
40 MLK_UI_FONT_LAST 38 MLK_UI_FONT_LAST
41 }; 39 };
42 40
43 extern struct mlk_font *mlk_ui_fonts[MLK_UI_FONT_LAST]; 41 extern struct mlk_font *mlk_ui_fonts[MLK_UI_FONT_LAST];
44 42
43 #if defined(__cplusplus)
44 extern "C" {
45 #endif
46
45 int 47 int
46 mlk_ui_init(void); 48 mlk_ui_init(void);
47 49
48 /* TODO: probably better somewhere else? */ 50 /* TODO: probably better somewhere else? */
49 void 51 void
57 unsigned int h); 59 unsigned int h);
58 60
59 void 61 void
60 mlk_ui_finish(void); 62 mlk_ui_finish(void);
61 63
62 MLK_CORE_END_DECLS 64 #if defined(__cplusplus)
65 }
66 #endif
63 67
64 #endif /* !MLK_UI_UI_H */ 68 #endif /* !MLK_UI_UI_H */