OpenTTD Source  13.2.1
DropDownListCharStringItem Class Reference

List item containing a C char string. More...

#include <dropdown_type.h>

Inheritance diagram for DropDownListCharStringItem:
DropDownListStringItem DropDownListItem

Public Member Functions

 DropDownListCharStringItem (const std::string &raw_string, int result, bool masked)
 
StringID String () const override
 
- Public Member Functions inherited from DropDownListStringItem
 DropDownListStringItem (StringID string, int result, bool masked)
 
bool Selectable () const override
 
uint Width () const override
 
void Draw (const Rect &r, bool sel, Colours bg_colour) const override
 
- Public Member Functions inherited from DropDownListItem
 DropDownListItem (int result, bool masked)
 
virtual uint Height (uint width) const
 

Data Fields

std::string raw_string
 
- Data Fields inherited from DropDownListStringItem
StringID string
 String ID of item.
 
- Data Fields inherited from DropDownListItem
int result
 Result code to return to window on selection.
 
bool masked
 Masked and unselectable item.
 

Additional Inherited Members

- Static Public Member Functions inherited from DropDownListStringItem
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...
 

Detailed Description

List item containing a C char string.

Definition at line 70 of file dropdown_type.h.


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