diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-23 04:15:48 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-23 04:15:55 +0200 |
| commit | 9a1b545e667036987f2bf2bb86966f941bfd384a (patch) | |
| tree | eb4f81270fc158431809e11f8388a3dfe9120572 /src/gui/inc | |
| parent | 06b1a3c58d95ad57f42ae38ef4e5c355949135c0 (diff) | |
| download | jancity-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.h | 2 |
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; }; |
