comparison examples/example-cursor/example-cursor.c @ 493:fce3b3c4b496

ui: label -> mlk_label
author David Demelier <markand@malikania.fr>
date Tue, 28 Feb 2023 13:26:53 +0100
parents d6757c30658e
children 8d5a266a1774
comparison
equal deleted inserted replaced
492:c7b18475f640 493:fce3b3c4b496
37 37
38 static struct mlk_state *states[1]; 38 static struct mlk_state *states[1];
39 static char help_text[128]; 39 static char help_text[128];
40 static enum mlk_window_cursor cursor = MLK_WINDOW_CURSOR_ARROW; 40 static enum mlk_window_cursor cursor = MLK_WINDOW_CURSOR_ARROW;
41 41
42 static struct label help = { 42 static struct mlk_label help = {
43 .x = 10, 43 .x = 10,
44 .y = 10, 44 .y = 10,
45 .text = help_text, 45 .text = help_text,
46 .flags = LABEL_FLAGS_SHADOW 46 .flags = MLK_LABEL_FLAGS_SHADOW
47 }; 47 };
48 48
49 static void 49 static void
50 init(void) 50 init(void)
51 { 51 {
106 { 106 {
107 (void)st; 107 (void)st;
108 108
109 mlk_painter_set_color(0xebede9ff); 109 mlk_painter_set_color(0xebede9ff);
110 mlk_painter_clear(); 110 mlk_painter_clear();
111 label_draw(&help); 111 mlk_label_draw(&help);
112 mlk_painter_present(); 112 mlk_painter_present();
113 } 113 }
114 114
115 static void 115 static void
116 run(void) 116 run(void)