The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Public Attributes | List of all members
gui2::dialogs::drop_down_menu::entry_data Struct Reference

Public Member Functions

 entry_data (const config &cfg)
 

Public Attributes

std::optional< bool > checkbox
 If present, column 1 will have a toggle button. More...
 
std::string icon
 If no checkbox is present, the icon at this path will be shown in column 1. More...
 
std::optional< std::string > image
 Is present, column 2 will display the image at this path. More...
 
t_string label
 If no image is present, this text will be shown in column 2. More...
 
std::optional< t_stringdetails
 If present, this text will be shown in column 3. More...
 
t_string tooltip
 Tooltip text for the entire row. More...
 

Detailed Description

Definition at line 52 of file drop_down_menu.hpp.

Constructor & Destructor Documentation

◆ entry_data()

gui2::dialogs::drop_down_menu::entry_data::entry_data ( const config cfg)

Definition at line 38 of file drop_down_menu.cpp.

Member Data Documentation

◆ checkbox

std::optional<bool> gui2::dialogs::drop_down_menu::entry_data::checkbox

If present, column 1 will have a toggle button.

The value indicates its initial state.

Definition at line 57 of file drop_down_menu.hpp.

◆ details

std::optional<t_string> gui2::dialogs::drop_down_menu::entry_data::details

If present, this text will be shown in column 3.

Definition at line 69 of file drop_down_menu.hpp.

◆ icon

std::string gui2::dialogs::drop_down_menu::entry_data::icon

If no checkbox is present, the icon at this path will be shown in column 1.

Definition at line 60 of file drop_down_menu.hpp.

◆ image

std::optional<std::string> gui2::dialogs::drop_down_menu::entry_data::image

Is present, column 2 will display the image at this path.

Definition at line 63 of file drop_down_menu.hpp.

◆ label

t_string gui2::dialogs::drop_down_menu::entry_data::label

If no image is present, this text will be shown in column 2.

Definition at line 66 of file drop_down_menu.hpp.

◆ tooltip

t_string gui2::dialogs::drop_down_menu::entry_data::tooltip

Tooltip text for the entire row.

Definition at line 72 of file drop_down_menu.hpp.


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