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

A message across the top of a region, with an optional action and an optional dismissal. More...

#include <view.hpp>

Public Attributes

Prop< Tone > tone = Tone::Info
 What the message conveys.
Prop< std::string > text
 The message.
ActionButton action {}
 The button beside the message; an empty label shows none.
bool dismissible = false
 Whether the user can dismiss it; set once.
Action onDismiss
 Called when the user dismisses it. The banner stays shown until the application hides it.
Common common {}
 Visibility, enablement, layout, drag-and-drop.

Detailed Description

A message across the top of a region, with an optional action and an optional dismissal.

Definition at line 978 of file view.hpp.

Member Data Documentation

◆ tone

Prop<Tone> morph::ui::Banner::tone = Tone::Info

What the message conveys.

Definition at line 980 of file view.hpp.

◆ text

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

The message.

Definition at line 982 of file view.hpp.

◆ action

ActionButton morph::ui::Banner::action {}

The button beside the message; an empty label shows none.

Definition at line 984 of file view.hpp.

◆ dismissible

bool morph::ui::Banner::dismissible = false

Whether the user can dismiss it; set once.

Definition at line 986 of file view.hpp.

◆ onDismiss

Action morph::ui::Banner::onDismiss

Called when the user dismisses it. The banner stays shown until the application hides it.

Definition at line 988 of file view.hpp.

◆ common

Common morph::ui::Banner::common {}

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

Definition at line 990 of file view.hpp.


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