aboutsummaryrefslogtreecommitdiff
path: root/src/gui/inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/inc')
-rw-r--r--src/gui/inc/gui.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/gui/inc/gui.h b/src/gui/inc/gui.h
index 7198af0..18ed37b 100644
--- a/src/gui/inc/gui.h
+++ b/src/gui/inc/gui.h
@@ -12,11 +12,15 @@ extern "C"
struct gui_common
{
- void (*add_child)(struct gui_common *parent, struct gui_common *child);
- int (*update)(struct gui_common *, const union peripheral *,
- const struct camera *);
- int (*render)(const struct gui_common *);
- void (*get_dim)(const struct gui_common *, short *w, short *h);
+ const struct gui_common_cb
+ {
+ void (*add_child)(struct gui_common *parent, struct gui_common *child);
+ int (*update)(struct gui_common *, const union peripheral *,
+ const struct camera *);
+ int (*render)(const struct gui_common *);
+ void (*get_dim)(const struct gui_common *, short *w, short *h);
+ } *cb;
+
short x, y;
bool hcentered, vcentered;
struct gui_common *parent, *child, *sibling;