OpenTTD Source 20250509-master-gb1cdf5024f
|
Colour selection list item, with icon and string components. More...
Public Member Functions | |
DropDownListColourItem (int colour, bool masked) | |
![]() | |
DropDownIcon (SpriteID sprite, PaletteID palette, Args &&... args) | |
DropDownIcon (const Dimension &dim, SpriteID sprite, PaletteID palette, Args &&... args) | |
uint | Height () const override |
uint | Width () const override |
void | Draw (const Rect &full, const Rect &r, bool sel, Colours bg_colour) const override |
![]() | |
DropDownString (std::string &&string, Args &&... args) | |
void | SetString (std::string &&string) |
uint | Height () const override |
uint | Width () const override |
void | Draw (const Rect &full, const Rect &r, bool sel, Colours bg_colour) const override |
![]() | |
DropDownListItem (int result, bool masked=false, bool shaded=false) | |
virtual bool | Selectable () const |
TextColour | GetColour (bool sel) const |
Additional Inherited Members | |
![]() | |
static bool | NatSortFunc (std::unique_ptr< const DropDownListItem > const &first, std::unique_ptr< const DropDownListItem > const &second) |
Natural sorting comparator function for DropDownList::sort(). | |
![]() | |
int | result |
Result value to return to window on selection. | |
bool | masked |
Masked and unselectable item. | |
bool | shaded |
Shaded item, affects text colour. | |
Colour selection list item, with icon and string components.
TSprite | Recolourable sprite to draw as icon. |
Definition at line 591 of file company_gui.cpp.
|
inline |
Definition at line 593 of file company_gui.cpp.