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 |
Static Public Member Functions | |
static bool | NatSortFunc (const DropDownListItem *first, const DropDownListItem *second) |
Natural sorting comparator function for DropDownList::sort(). | |
Data Fields | |
StringID | string |
String ID of item. |
Common string list item.
Definition at line 41 of file dropdown_type.h.
bool DropDownListStringItem::NatSortFunc | ( | const DropDownListItem * | first, | |
const DropDownListItem * | second | |||
) | [static] |
Natural sorting comparator function for DropDownList::sort().
first | Left side of comparison. | |
second | Right side of comparison. |
Definition at line 51 of file dropdown.cpp.
References lastof, and strnatcmp().
Referenced by GameOptionsWindow::BuildDropDownList().