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

What a region shows when it has nothing to show: a title, an explanation and an optional action. More...

#include <view.hpp>

Public Attributes

Prop< std::string > title
 The title.
Prop< std::string > text
 The explanation.
std::string icon
 The name of an icon in the theme's icon map; empty shows none. Set once.
ActionButton action {}
 The button below the text; an empty label shows none.
Common common {}
 Visibility, enablement, layout, drag-and-drop.

Detailed Description

What a region shows when it has nothing to show: a title, an explanation and an optional action.

Definition at line 1058 of file view.hpp.

Member Data Documentation

◆ title

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

The title.

Definition at line 1060 of file view.hpp.

◆ text

Prop<std::string> morph::ui::EmptyState::text

The explanation.

Definition at line 1062 of file view.hpp.

◆ icon

std::string morph::ui::EmptyState::icon

The name of an icon in the theme's icon map; empty shows none. Set once.

Definition at line 1064 of file view.hpp.

◆ action

ActionButton morph::ui::EmptyState::action {}

The button below the text; an empty label shows none.

Definition at line 1066 of file view.hpp.

◆ common

Common morph::ui::EmptyState::common {}

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

Definition at line 1068 of file view.hpp.


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