diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-29 00:39:06 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-29 00:39:06 +0200 |
| commit | cff35e88f5741c2295b85fa6e62f391a69f5b41f (patch) | |
| tree | 73e5abc406e2e70a5d35301c0d6a022cb7cd1951 /src/gui/inc | |
| parent | 23f24016da8e019de747bbc513202240b0d0ebba (diff) | |
| download | rts-cff35e88f5741c2295b85fa6e62f391a69f5b41f.tar.gz | |
gui: implement {h,v}centered
Diffstat (limited to 'src/gui/inc')
| -rw-r--r-- | src/gui/inc/gui.h | 3 |
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; }; |
