aboutsummaryrefslogtreecommitdiff
path: root/src/gui/inc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-29 00:39:06 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-29 00:39:06 +0200
commitcff35e88f5741c2295b85fa6e62f391a69f5b41f (patch)
tree73e5abc406e2e70a5d35301c0d6a022cb7cd1951 /src/gui/inc
parent23f24016da8e019de747bbc513202240b0d0ebba (diff)
downloadrts-cff35e88f5741c2295b85fa6e62f391a69f5b41f.tar.gz
gui: implement {h,v}centered
Diffstat (limited to 'src/gui/inc')
-rw-r--r--src/gui/inc/gui.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/inc/gui.h b/src/gui/inc/gui.h
index ec87f45..6678b1b 100644
--- a/src/gui/inc/gui.h
+++ b/src/gui/inc/gui.h
@@ -15,8 +15,9 @@ struct gui_common
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);
short x, y;
- bool centered;
+ bool hcentered, vcentered;
struct gui_common *parent, *child, *sibling;
};