Mercurial > molko
comparison libmlk-core/mlk/core/action.h @ 480:c1f64d451230
core: mlk_action has a start callback
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Feb 2023 17:26:00 +0100 |
parents | 5729efd23286 |
children | a11cd7ea3a37 |
comparison
equal
deleted
inserted
replaced
479:8e41ed5474cf | 480:c1f64d451230 |
---|---|
23 | 23 |
24 union mlk_event; | 24 union mlk_event; |
25 | 25 |
26 struct mlk_action { | 26 struct mlk_action { |
27 void *data; | 27 void *data; |
28 void (*start)(struct mlk_action *); | |
28 void (*handle)(struct mlk_action *, const union mlk_event *); | 29 void (*handle)(struct mlk_action *, const union mlk_event *); |
29 int (*update)(struct mlk_action *, unsigned int); | 30 int (*update)(struct mlk_action *, unsigned int); |
30 void (*draw)(struct mlk_action *); | 31 void (*draw)(struct mlk_action *); |
31 void (*end)(struct mlk_action *); | 32 void (*end)(struct mlk_action *); |
32 void (*finish)(struct mlk_action *); | 33 void (*finish)(struct mlk_action *); |
33 }; | 34 }; |
34 | 35 |
35 MLK_CORE_BEGIN_DECLS | 36 MLK_CORE_BEGIN_DECLS |
37 | |
38 void | |
39 mlk_action_start(struct mlk_action *); | |
36 | 40 |
37 void | 41 void |
38 mlk_action_handle(struct mlk_action *, const union mlk_event *); | 42 mlk_action_handle(struct mlk_action *, const union mlk_event *); |
39 | 43 |
40 int | 44 int |