comparison libmlk-ui/mlk/ui/theme.h @ 491:734b598534c4

ui: frame -> mlk_frame
author David Demelier <markand@malikania.fr>
date Tue, 28 Feb 2023 13:16:47 +0100
parents ad6e9970a191
children 2af25db99273
comparison
equal deleted inserted replaced
490:d4e50da7e5c5 491:734b598534c4
22 #include <mlk/core/core.h> 22 #include <mlk/core/core.h>
23 23
24 struct mlk_button; 24 struct mlk_button;
25 struct mlk_checkbox; 25 struct mlk_checkbox;
26 struct mlk_font; 26 struct mlk_font;
27 struct frame; 27 struct mlk_frame;
28 struct label; 28 struct label;
29 struct mlk_sprite; 29 struct mlk_sprite;
30 30
31 enum theme_font { 31 enum theme_font {
32 THEME_FONT_DEBUG, 32 THEME_FONT_DEBUG,
52 struct mlk_font *fonts[THEME_FONT_NUM]; 52 struct mlk_font *fonts[THEME_FONT_NUM];
53 const struct mlk_sprite *sprites[THEME_SPRITE_NUM]; 53 const struct mlk_sprite *sprites[THEME_SPRITE_NUM];
54 unsigned long colors[THEME_COLOR_NUM]; 54 unsigned long colors[THEME_COLOR_NUM];
55 unsigned int padding; 55 unsigned int padding;
56 56
57 void (*draw_frame)(const struct theme *, const struct frame *); 57 void (*draw_frame)(const struct theme *, const struct mlk_frame *);
58 void (*draw_label)(const struct theme *, const struct label *); 58 void (*draw_label)(const struct theme *, const struct label *);
59 void (*draw_button)(const struct theme *, const struct mlk_button *); 59 void (*draw_button)(const struct theme *, const struct mlk_button *);
60 void (*draw_checkbox)(const struct theme *t, const struct mlk_checkbox *); 60 void (*draw_checkbox)(const struct theme *t, const struct mlk_checkbox *);
61 }; 61 };
62 62
70 70
71 void 71 void
72 theme_shallow(struct theme *, const struct theme *); 72 theme_shallow(struct theme *, const struct theme *);
73 73
74 void 74 void
75 theme_draw_frame(const struct theme *, const struct frame *); 75 theme_draw_frame(const struct theme *, const struct mlk_frame *);
76 76
77 void 77 void
78 theme_draw_label(const struct theme *, const struct label *); 78 theme_draw_label(const struct theme *, const struct label *);
79 79
80 void 80 void