From d989dc6f49f0136ea69c10cdbaf3b4cdc8e31b6b Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Fri, 23 Sep 2022 04:15:48 +0200 Subject: gui: Allow elements to be hidden When a GUI element is hidden, no rendering or updating is done to it or its children. This can be useful to define a complex GUI tree structure that changes under specific conditions, without redefining it. --- src/gui/inc/gui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/inc') diff --git a/src/gui/inc/gui.h b/src/gui/inc/gui.h index 72b2fb0..b24984d 100644 --- a/src/gui/inc/gui.h +++ b/src/gui/inc/gui.h @@ -24,7 +24,7 @@ struct gui_common } *cb; short x, y, xoff, yoff; - bool hcentered, vcentered; + bool hidden, hcentered, vcentered; struct gui_common *parent, *child, *sibling; }; -- cgit v1.2.3