morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::Checkbox Struct Reference

A labelled check box. More...

#include <view.hpp>

Public Attributes

Prop< std::string > label
 The caption.
Prop< bool > checked
 Whether it is checked.
std::function< void(bool)> onToggle
 Called with the new state when the user toggles it.
FieldState field {}
 Read-only, required, errors and stale.
Common common {}
 Visibility, enablement, layout, drag-and-drop.

Detailed Description

A labelled check box.

Definition at line 473 of file view.hpp.

Member Data Documentation

◆ label

Prop<std::string> morph::ui::Checkbox::label

The caption.

Definition at line 475 of file view.hpp.

◆ checked

Prop<bool> morph::ui::Checkbox::checked

Whether it is checked.

Definition at line 477 of file view.hpp.

◆ onToggle

std::function<void(bool)> morph::ui::Checkbox::onToggle

Called with the new state when the user toggles it.

Definition at line 479 of file view.hpp.

◆ field

FieldState morph::ui::Checkbox::field {}

Read-only, required, errors and stale.

Definition at line 481 of file view.hpp.

◆ common

Common morph::ui::Checkbox::common {}

Visibility, enablement, layout, drag-and-drop.

Definition at line 483 of file view.hpp.


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