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
commit3e50314b4415ccc171ae7a73c57e365d00ff4b9c (patch)
treed146b04dd2f2e7cbed1365722465ad771605e39e /src/gui/inc
parent4d4b92c2b61164ba50b21fcc779b3f8505d16ed4 (diff)
downloadjancity-3e50314b4415ccc171ae7a73c57e365d00ff4b9c.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;
};