comparison libmlk-ui/mlk/ui/ui.h @ 603:ed1d3244ed57

ui: start re-working delegates
author David Demelier <markand@malikania.fr>
date Thu, 10 Aug 2023 19:57:00 +0200
parents 88e9bd420a28
children 281608524dd1
comparison
equal deleted inserted replaced
602:7e168493f0bd 603:ed1d3244ed57
18 18
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 #include <mlk/core/font.h>
23 24
24 /* TODO: make this a global variable to allow modification of default theme. */ 25 /* TODO: make this a global variable to allow modification of default theme. */
25 /* https://lospec.com/palette-list/duel */ 26 /* https://lospec.com/palette-list/duel */
26 #define MLK_UI_COLOR_TEXT (0x222323ff) 27 #define MLK_UI_COLOR_TEXT (0x222323ff)
27 #define MLK_UI_COLOR_SELECTED (0x55b67dff) 28 #define MLK_UI_COLOR_SELECTED (0x55b67dff)
32 #define MLK_UI_PADDING (10) 33 #define MLK_UI_PADDING (10)
33 #define MLK_UI_BORDER (2) 34 #define MLK_UI_BORDER (2)
34 35
35 enum mlk_align; 36 enum mlk_align;
36 37
37 struct mlk_font;
38
39 enum mlk_ui_font { 38 enum mlk_ui_font {
40 MLK_UI_FONT_INTERFACE, 39 MLK_UI_FONT_INTERFACE,
41 MLK_UI_FONT_LAST 40 MLK_UI_FONT_LAST
42 }; 41 };
43 42
44 extern struct mlk_font *mlk_ui_fonts[MLK_UI_FONT_LAST]; 43 extern struct mlk_font mlk_ui_fonts[MLK_UI_FONT_LAST];
45 44
46 #if defined(__cplusplus) 45 #if defined(__cplusplus)
47 extern "C" { 46 extern "C" {
48 #endif 47 #endif
49 48