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

Shows the case whose key the selector yields; remounts only when that key changes. More...

#include <view.hpp>

Public Attributes

Prop< Key > selector
 Which case to show.
std::vector< SwitchCase > cases
 The cases; the first one with the selected key wins.
Node fallback
 Shown when no case matches; may be null, and then nothing is shown.
Common common {}
 Visibility, enablement, layout, drag-and-drop.

Detailed Description

Shows the case whose key the selector yields; remounts only when that key changes.

Definition at line 662 of file view.hpp.

Member Data Documentation

◆ selector

Prop<Key> morph::ui::Switch::selector

Which case to show.

Definition at line 664 of file view.hpp.

◆ cases

std::vector<SwitchCase> morph::ui::Switch::cases

The cases; the first one with the selected key wins.

Definition at line 666 of file view.hpp.

◆ fallback

Node morph::ui::Switch::fallback

Shown when no case matches; may be null, and then nothing is shown.

Definition at line 668 of file view.hpp.

◆ common

Common morph::ui::Switch::common {}

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

Definition at line 670 of file view.hpp.


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