Mercurial > molko
comparison libmlk-core/mlk/core/action.h @ 441:31c1bbc33813
man: document mlk-action
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 24 Oct 2022 21:29:39 +0200 |
parents | 8f59201dc76b |
children | 773a082f0b91 |
comparison
equal
deleted
inserted
replaced
440:c9bd1ff1ebe1 | 441:31c1bbc33813 |
---|---|
21 | 21 |
22 #include "core.h" | 22 #include "core.h" |
23 | 23 |
24 union event; | 24 union event; |
25 | 25 |
26 struct action { | 26 struct mlk_action { |
27 void *data; | 27 void *data; |
28 void (*handle)(struct action *, const union event *); | 28 void (*handle)(struct mlk_action *, const union event *); |
29 int (*update)(struct action *, unsigned int); | 29 int (*update)(struct mlk_action *, unsigned int); |
30 void (*draw)(struct action *); | 30 void (*draw)(struct mlk_action *); |
31 void (*end)(struct action *); | 31 void (*end)(struct mlk_action *); |
32 void (*finish)(struct action *); | 32 void (*finish)(struct mlk_action *); |
33 }; | 33 }; |
34 | 34 |
35 CORE_BEGIN_DECLS | 35 CORE_BEGIN_DECLS |
36 | 36 |
37 void | 37 void |
38 action_handle(struct action *, const union event *); | 38 mlk_action_handle(struct mlk_action *, const union event *); |
39 | 39 |
40 int | 40 int |
41 action_update(struct action *, unsigned int); | 41 mlk_action_update(struct mlk_action *, unsigned int); |
42 | 42 |
43 void | 43 void |
44 action_draw(struct action *); | 44 mlk_action_draw(struct mlk_action *); |
45 | 45 |
46 void | 46 void |
47 action_end(struct action *); | 47 mlk_action_end(struct mlk_action *); |
48 | 48 |
49 void | 49 void |
50 action_finish(struct action *); | 50 mlk_action_finish(struct mlk_action *); |
51 | 51 |
52 CORE_END_DECLS | 52 CORE_END_DECLS |
53 | 53 |
54 #endif /* !MLK_CORE_ACTION_H */ | 54 #endif /* !MLK_CORE_ACTION_H */ |