15 namespace visualization {
29 void SetOn(
bool is_on);
43 std::unique_ptr<Impl> impl_;
ImGuiContext * context
Definition: Window.cpp:76
Definition: ToggleSwitch.h:18
void SetText(const char *text)
Sets the text of the toggle slider.
void SetOn(bool is_on)
Definition: ToggleSwitch.cpp:42
ToggleSwitch(const char *title)
Definition: ToggleSwitch.cpp:32
~ToggleSwitch()
Definition: ToggleSwitch.cpp:38
DrawResult Draw(const DrawContext &context) override
Definition: ToggleSwitch.cpp:61
bool GetIsOn() const
Definition: ToggleSwitch.cpp:40
const char * GetText() const
Returns the text of the toggle slider.
void SetOnClicked(std::function< void(bool)> on_clicked)
Definition: ToggleSwitch.cpp:44
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
Definition: ToggleSwitch.cpp:48
Definition: PinholeCameraIntrinsic.cpp:16
Definition: ToggleSwitch.cpp:25