The Battle for Wesnoth  1.19.0-dev
Public Attributes | List of all members
gui::indented_menu_item Struct Reference

The only kind of row still supported by the menu class. More...

#include <menu.hpp>

Public Attributes

int indent_level
 An amount of blank space at the start of the row, measured in tab-stops (so 1 is around 4 en-widths) More...
 
std::string icon
 If non-empty, a picture to display before the text. More...
 
std::string text
 

Detailed Description

The only kind of row still supported by the menu class.

If comparing to 1.17.24 or before, these three items were held as a single string, thus a single member of the "fields" and a single "column" of the multi-column support.

Definition at line 32 of file menu.hpp.

Member Data Documentation

◆ icon

std::string gui::indented_menu_item::icon

If non-empty, a picture to display before the text.

Definition at line 37 of file menu.hpp.

Referenced by gui::menu::style::item_size().

◆ indent_level

int gui::indented_menu_item::indent_level

An amount of blank space at the start of the row, measured in tab-stops (so 1 is around 4 en-widths)

Definition at line 35 of file menu.hpp.

Referenced by gui::menu::style::item_size().

◆ text

std::string gui::indented_menu_item::text

Definition at line 38 of file menu.hpp.

Referenced by gui::menu::style::item_size().


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