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

An action of a screen's head, as its handle answers it. More...

#include <interpreter.hpp>

Public Member Functions

bool operator== (HeadAction const &) const =default
 Memberwise equality.

Public Attributes

std::string id
 The action's id, what ScreenHead::run takes.
std::string label
 The label.
std::string icon
 The name of an icon; empty for none.
ButtonEmphasis emphasis = ButtonEmphasis::Normal
 How much it stands out.
bool enabled = true
 Whether it can be run now.

Detailed Description

An action of a screen's head, as its handle answers it.

Definition at line 2675 of file interpreter.hpp.

Member Function Documentation

◆ operator==()

bool morph::ui::HeadAction::operator== ( HeadAction const & ) const
default

Memberwise equality.

Returns
Whether every member matches.

Member Data Documentation

◆ id

std::string morph::ui::HeadAction::id

The action's id, what ScreenHead::run takes.

Definition at line 2677 of file interpreter.hpp.

◆ label

std::string morph::ui::HeadAction::label

The label.

Definition at line 2679 of file interpreter.hpp.

◆ icon

std::string morph::ui::HeadAction::icon

The name of an icon; empty for none.

Definition at line 2681 of file interpreter.hpp.

◆ emphasis

ButtonEmphasis morph::ui::HeadAction::emphasis = ButtonEmphasis::Normal

How much it stands out.

Definition at line 2683 of file interpreter.hpp.

◆ enabled

bool morph::ui::HeadAction::enabled = true

Whether it can be run now.

Definition at line 2685 of file interpreter.hpp.


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