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

A short label marking a state, such as a count or a status. More...

#include <view.hpp>

Public Attributes

Prop< Tone > tone = Tone::Neutral
 What the mark conveys.
Prop< std::string > text
 The label.
std::string icon
 The name of an icon in the theme's icon map; empty shows none. Set once.
Common common {}
 Visibility, enablement, layout, drag-and-drop.

Detailed Description

A short label marking a state, such as a count or a status.

Definition at line 994 of file view.hpp.

Member Data Documentation

◆ tone

Prop<Tone> morph::ui::Badge::tone = Tone::Neutral

What the mark conveys.

Definition at line 996 of file view.hpp.

◆ text

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

The label.

Definition at line 998 of file view.hpp.

◆ icon

std::string morph::ui::Badge::icon

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

Definition at line 1000 of file view.hpp.

◆ common

Common morph::ui::Badge::common {}

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

Definition at line 1002 of file view.hpp.


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