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

Per-frame interaction flags derived from pointer / keyboard state. More...

#include <Layout.hpp>

Public Attributes

uint32_t hovered: 1
 Pointer is currently inside the node.
uint32_t pressed: 1
 Primary mouse button is pressed on this node.
uint32_t focused: 1
 Node currently holds keyboard focus.
uint32_t checked: 1
 Toggle / Checkbox checked state (:checked).

Detailed Description

Per-frame interaction flags derived from pointer / keyboard state.

Packed as bitfields to keep the node struct small. Written by InputController::updateFlags, read by StyleResolver and by components that need to render state-dependent visuals.


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