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

A button of a screen's head (screen.action), or of a dialog's or drawer's footer. More...

#include <author.hpp>

Public Attributes

std::string id
 The action's id, unique in its list: a name.
AnyHandle label
 The label; required.
AnyHandle icon
 The name of an icon.
ButtonEmphasis emphasis = ButtonEmphasis::Normal
 How much it stands out; Normal writes no key.
AnyHandle enabled
 Whether it can be run; absent enables it.
AnyHandle visible
 Whether it is shown; absent shows it.
Commands onClick
 Commands run when it is clicked, in the scope its list belongs to.

Detailed Description

A button of a screen's head (screen.action), or of a dialog's or drawer's footer.

Definition at line 2413 of file author.hpp.

Member Data Documentation

◆ id

std::string morph::ui::author::ActionButtonOptions::id

The action's id, unique in its list: a name.

Definition at line 2415 of file author.hpp.

◆ label

AnyHandle morph::ui::author::ActionButtonOptions::label

The label; required.

Definition at line 2417 of file author.hpp.

◆ icon

AnyHandle morph::ui::author::ActionButtonOptions::icon

The name of an icon.

Definition at line 2419 of file author.hpp.

◆ emphasis

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

How much it stands out; Normal writes no key.

Definition at line 2421 of file author.hpp.

◆ enabled

AnyHandle morph::ui::author::ActionButtonOptions::enabled

Whether it can be run; absent enables it.

Definition at line 2423 of file author.hpp.

◆ visible

AnyHandle morph::ui::author::ActionButtonOptions::visible

Whether it is shown; absent shows it.

Definition at line 2425 of file author.hpp.

◆ onClick

Commands morph::ui::author::ActionButtonOptions::onClick

Commands run when it is clicked, in the scope its list belongs to.

Definition at line 2427 of file author.hpp.


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