TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::MessageDialogDesc Struct Reference

What a MessageDialog shows. More...

#include <gui_controls/gui_application.h>

Public Attributes

MessageIcon icon = MessageIcon::Question
 beside the text
std::string_view title
 a question: "Quit Test?"
std::string_view message
 one or two sentences on what happens
std::span< const MessageButton > buttons
 MessageDialog returns an index into these.
int defaultButton = 0
 focused at first; Enter
int cancelButton = -1
 Esc and the close button; -1: the default one.
std::span< const MessageDialogItem > items
 affected items, listed in a well
bool * dontAskAgain = nullptr
 shows "Don't ask again" when set
std::string_view details
 collapsible technical details (mono)

Detailed Description

What a MessageDialog shows.

Member Data Documentation

◆ icon

MessageIcon tachyon::MessageDialogDesc::icon = MessageIcon::Question

beside the text

◆ title

std::string_view tachyon::MessageDialogDesc::title

a question: "Quit Test?"

◆ message

std::string_view tachyon::MessageDialogDesc::message

one or two sentences on what happens

◆ buttons

std::span<const MessageButton> tachyon::MessageDialogDesc::buttons

MessageDialog returns an index into these.

◆ defaultButton

int tachyon::MessageDialogDesc::defaultButton = 0

focused at first; Enter

◆ cancelButton

int tachyon::MessageDialogDesc::cancelButton = -1

Esc and the close button; -1: the default one.

◆ items

std::span<const MessageDialogItem> tachyon::MessageDialogDesc::items

affected items, listed in a well

◆ dontAskAgain

bool* tachyon::MessageDialogDesc::dontAskAgain = nullptr

shows "Don't ask again" when set

◆ details

std::string_view tachyon::MessageDialogDesc::details

collapsible technical details (mono)


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