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

A panel that slides in from one edge over the content: a Dialog with a side, and the same rules. More...

#include <view.hpp>

Public Attributes

Prop< bool > open
 Whether it is shown.
Prop< std::string > title
 The title.
Node child
 The content; may be null.
Action onDismiss
 Called when the user dismisses it (Esc on the TUI).
Side side = Side::End
 The edge it slides in from; set once.
Common common {}
 Visibility, enablement, layout, drag-and-drop.

Detailed Description

A panel that slides in from one edge over the content: a Dialog with a side, and the same rules.

Definition at line 1072 of file view.hpp.

Member Data Documentation

◆ open

Prop<bool> morph::ui::Drawer::open

Whether it is shown.

Definition at line 1074 of file view.hpp.

◆ title

Prop<std::string> morph::ui::Drawer::title

The title.

Definition at line 1076 of file view.hpp.

◆ child

Node morph::ui::Drawer::child

The content; may be null.

Definition at line 1078 of file view.hpp.

◆ onDismiss

Action morph::ui::Drawer::onDismiss

Called when the user dismisses it (Esc on the TUI).

Definition at line 1080 of file view.hpp.

◆ side

Side morph::ui::Drawer::side = Side::End

The edge it slides in from; set once.

Definition at line 1082 of file view.hpp.

◆ common

Common morph::ui::Drawer::common {}

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

Definition at line 1084 of file view.hpp.


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