comparison libmlk-ui/mlk/ui/theme.h @ 468:91ce23a36143

core: sprite -> mlk_sprite
author David Demelier <markand@malikania.fr>
date Mon, 27 Feb 2023 11:08:28 +0100
parents 5729efd23286
children 441c37e7474f
comparison
equal deleted inserted replaced
467:7420c78018dc 468:91ce23a36143
24 struct button; 24 struct button;
25 struct checkbox; 25 struct checkbox;
26 struct mlk_font; 26 struct mlk_font;
27 struct frame; 27 struct frame;
28 struct label; 28 struct label;
29 struct sprite; 29 struct mlk_sprite;
30 30
31 enum theme_font { 31 enum theme_font {
32 THEME_FONT_DEBUG, 32 THEME_FONT_DEBUG,
33 THEME_FONT_INTERFACE, 33 THEME_FONT_INTERFACE,
34 THEME_FONT_IMPORTANT, 34 THEME_FONT_IMPORTANT,
48 THEME_SPRITE_NUM 48 THEME_SPRITE_NUM
49 }; 49 };
50 50
51 struct theme { 51 struct theme {
52 struct mlk_font *fonts[THEME_FONT_NUM]; 52 struct mlk_font *fonts[THEME_FONT_NUM];
53 const struct 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 frame *);
58 void (*draw_label)(const struct theme *, const struct label *); 58 void (*draw_label)(const struct theme *, const struct label *);