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

A headBadge part, lowered in the screen scope. More...

#include <interpreter.hpp>

Public Attributes

Prop< std::string > text
 The badge's text.
Prop< Tone > tone = Tone::Neutral
 Its tone.
Prop< std::string > icon
 The name of an icon; empty for none.
Prop< bool > visible = true
 Whether it is shown.

Detailed Description

A headBadge part, lowered in the screen scope.

Definition at line 2167 of file interpreter.hpp.

Member Data Documentation

◆ text

Prop<std::string> morph::ui::detail::BadgeModel::text

The badge's text.

Definition at line 2169 of file interpreter.hpp.

◆ tone

Prop<Tone> morph::ui::detail::BadgeModel::tone = Tone::Neutral

Its tone.

Definition at line 2171 of file interpreter.hpp.

◆ icon

Prop<std::string> morph::ui::detail::BadgeModel::icon

The name of an icon; empty for none.

Definition at line 2173 of file interpreter.hpp.

◆ visible

Prop<bool> morph::ui::detail::BadgeModel::visible = true

Whether it is shown.

Definition at line 2175 of file interpreter.hpp.


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