|
OpenTTD Source 15.0-beta1
|
Drop down string component. More...
#include <dropdown_common_type.h>
Public Member Functions | |
| template<typename... Args> | |
| DropDownString (StringID string, Args &&... args) | |
| template<typename... Args> | |
| DropDownString (const 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 |
Static Public Member Functions | |
| static bool | NatSortFunc (std::unique_ptr< const DropDownListItem > const &first, std::unique_ptr< const DropDownListItem > const &second) |
| Natural sorting comparator function for DropDownList::sort(). | |
Private Attributes | |
| std::string | string |
| String to be drawn. | |
| Dimension | dim |
| Dimensions of string. | |
Drop down string component.
| TBase | Base component. |
| TFs | Font size. |
| TEnd | Position string at end if true, or start if false. |
Definition at line 53 of file dropdown_common_type.h.
|
inlineexplicit |
Definition at line 58 of file dropdown_common_type.h.
|
inlineexplicit |
Definition at line 64 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 83 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 76 of file dropdown_common_type.h.
|
inlinestatic |
Natural sorting comparator function for DropDownList::sort().
| first | Left side of comparison. |
| second | Right side of comparison. |
Definition at line 97 of file dropdown_common_type.h.
References StrNaturalCompare().
|
inline |
Definition at line 70 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 81 of file dropdown_common_type.h.
|
private |
Dimensions of string.
Definition at line 55 of file dropdown_common_type.h.
|
private |
String to be drawn.
Definition at line 54 of file dropdown_common_type.h.