comparison examples/example-ui/button-style-glow.h @ 506:e205625015ba

ui: gridmenu is stylable
author David Demelier <markand@malikania.fr>
date Thu, 02 Mar 2023 08:54:00 +0100
parents 6100c643dba0
children
comparison
equal deleted inserted replaced
505:6100c643dba0 506:e205625015ba
23 23
24 #define BUTTON_STYLE_GLOW_COLOR_1 0x7da42dff 24 #define BUTTON_STYLE_GLOW_COLOR_1 0x7da42dff
25 #define BUTTON_STYLE_GLOW_COLOR_2 0xa6cc34ff 25 #define BUTTON_STYLE_GLOW_COLOR_2 0xa6cc34ff
26 #define BUTTON_STYLE_GLOW_DELAY 20 26 #define BUTTON_STYLE_GLOW_DELAY 20
27 27
28 struct mlk_glower;
29
28 struct button_style_glow { 30 struct button_style_glow {
29 unsigned long colors[3]; 31 struct mlk_glower *glow;
30 unsigned int delay;
31 unsigned int elapsed;
32 struct mlk_button_style style; 32 struct mlk_button_style style;
33 }; 33 };
34 34
35 void 35 void
36 button_style_glow_init(struct button_style_glow *); 36 button_style_glow_init(struct button_style_glow *);