OpenTTD Source 20250222-master-g9a8d9e4e48
|
Public Member Functions | |
constexpr | Element (BadgeClassID badge_class, uint8_t column_group, bool visible, uint sort_order, Dimension size, std::string_view label) |
Data Fields | |
BadgeClassID | badge_class |
Badge class index. | |
uint8_t | column_group |
Column group in UI. 0 = left, 1 = centre, 2 = right. | |
bool | visible |
Whether this element is visible. | |
uint | sort_order |
Order of element. | |
Dimension | size |
Maximal size of this element. | |
std::string_view | label |
Class label (string owned by the class badge) | |
Definition at line 46 of file newgrf_badge.h.
|
inlineconstexpr |
Definition at line 54 of file newgrf_badge.h.
BadgeClassID GUIBadgeClasses::Element::badge_class |
Badge class index.
Definition at line 47 of file newgrf_badge.h.
uint8_t GUIBadgeClasses::Element::column_group |
Column group in UI. 0 = left, 1 = centre, 2 = right.
Definition at line 48 of file newgrf_badge.h.
std::string_view GUIBadgeClasses::Element::label |
Class label (string owned by the class badge)
Definition at line 52 of file newgrf_badge.h.
Dimension GUIBadgeClasses::Element::size |
Maximal size of this element.
Definition at line 51 of file newgrf_badge.h.
uint GUIBadgeClasses::Element::sort_order |
Order of element.
Definition at line 50 of file newgrf_badge.h.
bool GUIBadgeClasses::Element::visible |
Whether this element is visible.
Definition at line 49 of file newgrf_badge.h.