comparison libmlk-ui/mlk/ui/theme.h @ 451:90a097b1aa0f

core: font -> mlk_font
author David Demelier <markand@malikania.fr>
date Sat, 18 Feb 2023 20:40:01 +0100
parents 773a082f0b91
children 5729efd23286
comparison
equal deleted inserted replaced
450:b26dd49f69ff 451:90a097b1aa0f
21 21
22 #include <mlk/core/core.h> 22 #include <mlk/core/core.h>
23 23
24 struct button; 24 struct button;
25 struct checkbox; 25 struct checkbox;
26 struct font; 26 struct mlk_font;
27 struct frame; 27 struct frame;
28 struct label; 28 struct label;
29 struct sprite; 29 struct sprite;
30 30
31 enum theme_font { 31 enum theme_font {
47 THEME_SPRITE_CURSOR, 47 THEME_SPRITE_CURSOR,
48 THEME_SPRITE_NUM 48 THEME_SPRITE_NUM
49 }; 49 };
50 50
51 struct theme { 51 struct theme {
52 struct font *fonts[THEME_FONT_NUM]; 52 struct mlk_font *fonts[THEME_FONT_NUM];
53 const struct sprite *sprites[THEME_SPRITE_NUM]; 53 const struct 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 *);