OpenTTD Source
1.11.0-beta2
|
List item with icon and string. More...
#include <dropdown_type.h>
Public Member Functions | |
DropDownListIconItem (SpriteID sprite, PaletteID pal, StringID string, int result, bool masked) | |
uint | Height (uint width) const override |
uint | Width () const override |
void | Draw (int left, int right, int top, int bottom, bool sel, Colours bg_colour) const override |
void | SetDimension (Dimension d) |
![]() | |
DropDownListParamStringItem (StringID string, int result, bool masked) | |
StringID | String () const override |
void | SetParam (uint index, uint64 value) |
![]() | |
DropDownListStringItem (StringID string, int result, bool masked) | |
bool | Selectable () const override |
![]() | |
DropDownListItem (int result, bool masked) | |
Private Attributes | |
SpriteID | sprite |
PaletteID | pal |
Dimension | dim |
uint | sprite_y |
uint | text_y |
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(). More... | |
![]() | |
uint64 | decode_params [10] |
Parameters of the string. | |
![]() | |
StringID | string |
String ID of item. | |
![]() | |
int | result |
Result code to return to window on selection. | |
bool | masked |
Masked and unselectable item. | |
List item with icon and string.
Definition at line 81 of file dropdown_type.h.