15 namespace visualization {
29 void SetOn(
bool is_on);
43 std::unique_ptr<Impl> impl_;
DrawResult Draw(const DrawContext &context) override
ToggleSwitch(const char *title)
const char * GetText() const
Returns the text of the toggle slider.
void SetText(const char *text)
Sets the text of the toggle slider.
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
void SetOnClicked(std::function< void(bool)> on_clicked)
Generic file read and write utility for python interface.