From cff35e88f5741c2295b85fa6e62f391a69f5b41f Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Wed, 29 Jun 2022 00:39:06 +0200 Subject: gui: implement {h,v}centered --- src/gui/inc/gui.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/inc/gui.h') 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; }; -- cgit v1.2.3