| OpenTTD
    | 
Common string list item. More...
#include <dropdown_type.h>
 
  
 | Public Member Functions | |
| DropDownListStringItem (StringID string, int result, bool masked) | |
| virtual bool | Selectable () const | 
| virtual uint | Width () const | 
| virtual void | Draw (int left, int right, int top, int bottom, bool sel, int bg_colour) const | 
| virtual StringID | String () const | 
|  Public Member Functions inherited from DropDownListItem | |
| DropDownListItem (int result, bool masked) | |
| virtual uint | Height (uint width) const | 
| Static Public Member Functions | |
| static int CDECL | NatSortFunc (const DropDownListItem *const *first, const DropDownListItem *const *second) | 
| Natural sorting comparator function for DropDownList::sort(). | |
| Data Fields | |
| 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. | |
Common string list item.
Definition at line 41 of file dropdown_type.h.
| 
 | static | 
Natural sorting comparator function for DropDownList::sort().
| first | Left side of comparison. | 
| second | Right side of comparison. | 
Definition at line 53 of file dropdown.cpp.
References lastof, and strnatcmp().
Referenced by GameOptionsWindow::BuildDropDownList().
 1.8.1.2
 1.8.1.2