aboutsummaryrefslogtreecommitdiff
path: root/src/gui/inc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-23 04:15:48 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-23 04:15:55 +0200
commitd989dc6f49f0136ea69c10cdbaf3b4cdc8e31b6b (patch)
tree58c0d7fd62bd08d1aa8ded1060c5457215fe0594 /src/gui/inc
parentd0089e7ddf45ac69a10830a487b7353273ba7d2e (diff)
downloadrts-d989dc6f49f0136ea69c10cdbaf3b4cdc8e31b6b.tar.gz
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.
Diffstat (limited to 'src/gui/inc')
-rw-r--r--src/gui/inc/gui.h2
1 files changed, 1 insertions, 1 deletions
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;
};