Mercurial > molko
comparison libmlk-core/mlk/core/drawable.h @ 449:f2f0e73ea9da
core: drawable -> mlk_drawable
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 18 Feb 2023 13:16:40 +0100 |
parents | 773a082f0b91 |
children | 5729efd23286 |
comparison
equal
deleted
inserted
replaced
448:0c4cd552879d | 449:f2f0e73ea9da |
---|---|
19 #ifndef MLK_CORE_DRAWABLE_H | 19 #ifndef MLK_CORE_DRAWABLE_H |
20 #define MLK_CORE_DRAWABLE_H | 20 #define MLK_CORE_DRAWABLE_H |
21 | 21 |
22 #include "core.h" | 22 #include "core.h" |
23 | 23 |
24 struct drawable { | 24 struct mlk_drawable { |
25 void *data; | 25 void *data; |
26 int x; | 26 int x; |
27 int y; | 27 int y; |
28 int (*update)(struct drawable *, unsigned int); | 28 int (*update)(struct mlk_drawable *, unsigned int); |
29 void (*draw)(struct drawable *); | 29 void (*draw)(struct mlk_drawable *); |
30 void (*end)(struct drawable *); | 30 void (*end)(struct mlk_drawable *); |
31 void (*finish)(struct drawable *); | 31 void (*finish)(struct mlk_drawable *); |
32 }; | 32 }; |
33 | 33 |
34 CORE_BEGIN_DECLS | 34 CORE_BEGIN_DECLS |
35 | 35 |
36 int | 36 int |
37 drawable_update(struct drawable *, unsigned int); | 37 mlk_drawable_update(struct mlk_drawable *, unsigned int); |
38 | 38 |
39 void | 39 void |
40 drawable_draw(struct drawable *); | 40 mlk_drawable_draw(struct mlk_drawable *); |
41 | 41 |
42 void | 42 void |
43 drawable_end(struct drawable *); | 43 mlk_drawable_end(struct mlk_drawable *); |
44 | 44 |
45 void | 45 void |
46 drawable_finish(struct drawable *); | 46 mlk_drawable_finish(struct mlk_drawable *); |
47 | 47 |
48 CORE_END_DECLS | 48 CORE_END_DECLS |
49 | 49 |
50 #endif /* !MLK_CORE_DRAWABLE_H */ | 50 #endif /* !MLK_CORE_DRAWABLE_H */ |