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

Options of button. More...

#include <author.hpp>

Public Attributes

AnyHandle label
 The label: the button's text and its accessible name.
AnyHandle icon
 An icon of the theme's icon map; it never names the button.
ButtonEmphasis emphasis = ButtonEmphasis::Normal
 How much it stands out; Normal writes no key.
Commands onClick
 Commands run on a click.
Commands onActivate
 Commands run on activation by keyboard.
std::optional< ButtonStyle > style
 A push button or a list entry; absent writes no key, a push button.
AnyHandle selected
 Whether a list entry is the current one, a condition; only with ButtonStyle::Item, which the loader checks.

Detailed Description

Options of button.

Definition at line 3135 of file author.hpp.

Member Data Documentation

◆ label

AnyHandle morph::ui::author::ButtonOptions::label

The label: the button's text and its accessible name.

Definition at line 3137 of file author.hpp.

◆ icon

AnyHandle morph::ui::author::ButtonOptions::icon

An icon of the theme's icon map; it never names the button.

Definition at line 3139 of file author.hpp.

◆ emphasis

ButtonEmphasis morph::ui::author::ButtonOptions::emphasis = ButtonEmphasis::Normal

How much it stands out; Normal writes no key.

Definition at line 3141 of file author.hpp.

◆ onClick

Commands morph::ui::author::ButtonOptions::onClick

Commands run on a click.

Definition at line 3143 of file author.hpp.

◆ onActivate

Commands morph::ui::author::ButtonOptions::onActivate

Commands run on activation by keyboard.

Definition at line 3145 of file author.hpp.

◆ style

std::optional<ButtonStyle> morph::ui::author::ButtonOptions::style

A push button or a list entry; absent writes no key, a push button.

Definition at line 3147 of file author.hpp.

◆ selected

AnyHandle morph::ui::author::ButtonOptions::selected

Whether a list entry is the current one, a condition; only with ButtonStyle::Item, which the loader checks.

Definition at line 3150 of file author.hpp.


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