ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::NodeConfig Struct Reference

Static configuration bits: interaction behaviour, render behaviour. More...

#include <Layout.hpp>

Public Attributes

uint32_t interactive: 1
 Receives pointer hover/click events.
uint32_t blocksRaycast: 1
 Stops hit-testing even when not interactive.
uint32_t enabled: 1
 Enabled state (false triggers :disabled).
uint32_t visible: 1
 Visibility (false behaves like display: none).
uint32_t focusable: 1
 Can acquire keyboard focus and participate in Tab cycle.
uint32_t focusScope: 1
 Traps Tab focus cycling inside this subtree.
uint32_t keyboardActivates: 1
 Enter / Space trigger onClick while focused.
uint32_t updateWhenDisabled: 1
 Still runs onUpdate while disabled.
uint32_t portal: 1
 Rendered at the root above clip rects.
uint32_t passThrough: 1
 Forwards press/click events to ancestor nodes.
uint32_t draggable: 1
 Can initiate a drag-and-drop gesture on press + move.
uint32_t droppable: 1
 Can accept drops during an active drag-and-drop gesture.

Detailed Description

Static configuration bits: interaction behaviour, render behaviour.

Set by subclass constructors (or by inline setters) and read on every frame. Changing any of these fields is safe at runtime, but should be done through the setter methods rather than by writing the bitfields directly, so that bookkeeping (dirty flags, focus cleanup) stays consistent.


The documentation for this struct was generated from the following file: