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
commit9a1b545e667036987f2bf2bb86966f941bfd384a (patch)
treeeb4f81270fc158431809e11f8388a3dfe9120572 /src/gui/inc
parent06b1a3c58d95ad57f42ae38ef4e5c355949135c0 (diff)
downloadjancity-9a1b545e667036987f2bf2bb86966f941bfd384a.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;
};