45 static constexpr const char *PART_BOX =
"box";
46 static constexpr const char *PART_MARK =
"mark";
Centralized standard library includes used throughout ZenitUI.
The node class: tree structure, layout pass, style resolution, input dispatch, render orchestration,...
TLayout(Args &&...args)
Definition Layout.hpp:1401
Checkbox(bool state=false)
Construct with an initial state.
std::function< void(bool)> onToggle
Fired after the checked state changes via user interaction or toggle(true).
Definition Checkbox.hpp:41
void renderContent(float op, const ComputedStyle &style) override
Draw the node's content (text, images, custom geometry).
void toggle(bool notify=true)
Flip the checked state and optionally fire onToggle.
bool isChecked
Legacy mirror of getChecked().
Definition Checkbox.hpp:43
Vec2 computeIntrinsicSize(float availW, float availH) override
Compute the intrinsic size, excluding padding and border.
void onCheckedChanged(bool nowChecked) override
Called from setChecked after the checked state changes.
Dense style: every property has a concrete value.
Definition Style.hpp:1036
2D vector with component-wise arithmetic.
Definition CoreTypes.hpp:25