ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
Toggle.hpp File Reference

A boolean on/off switch. More...

#include "Common.hpp"
#include "Layout.hpp"

Go to the source code of this file.

Classes

class  ZenitUI::UI::Toggle
 A toggle switch. More...

Detailed Description

A boolean on/off switch.

The visual is a Layout container with a single child Layout whose class is "toggle-knob". The knob's position is driven entirely by CSS through the Toggle:checked .toggle-knob selector.