Mercurial > molko
comparison examples/example-notify/example-notify.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 | 35cc5d51bcb2 |
comparison
equal
deleted
inserted
replaced
492:c7b18475f640 | 493:fce3b3c4b496 |
---|---|
34 #include <mlk/ui/ui.h> | 34 #include <mlk/ui/ui.h> |
35 | 35 |
36 #include <mlk/example/example.h> | 36 #include <mlk/example/example.h> |
37 #include <mlk/example/registry.h> | 37 #include <mlk/example/registry.h> |
38 | 38 |
39 static struct label help = { | 39 static struct mlk_label help = { |
40 .text = "Keys: <Space> to generate a notification.", | 40 .text = "Keys: <Space> to generate a notification.", |
41 .x = 10, | 41 .x = 10, |
42 .y = 10, | 42 .y = 10, |
43 .flags = LABEL_FLAGS_SHADOW | 43 .flags = MLK_LABEL_FLAGS_SHADOW |
44 }; | 44 }; |
45 static struct mlk_texture *icon; | 45 static struct mlk_texture *icon; |
46 static struct mlk_state *states[1]; | 46 static struct mlk_state *states[1]; |
47 | 47 |
48 static void | 48 static void |
87 { | 87 { |
88 (void)st; | 88 (void)st; |
89 | 89 |
90 mlk_painter_set_color(0xffffffff); | 90 mlk_painter_set_color(0xffffffff); |
91 mlk_painter_clear(); | 91 mlk_painter_clear(); |
92 label_draw(&help); | 92 mlk_label_draw(&help); |
93 notify_draw(); | 93 notify_draw(); |
94 mlk_painter_present(); | 94 mlk_painter_present(); |
95 } | 95 } |
96 | 96 |
97 static void | 97 static void |