|
OpenTTD Source 20251116-master-g21329071df
|
Drop down string component. More...
#include <dropdown_common_type.h>
Public Member Functions | |
| template<typename... Args> | |
| DropDownString (std::string &&string, Args &&... args) | |
| void | SetString (std::string &&string) |
| uint | Height () const override |
| uint | Width () const override |
| int | OnClick (const Rect &r, const Point &pt) const override |
| void | Draw (const Rect &full, const Rect &r, bool sel, int click_result, 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 56 of file dropdown_common_type.h.
|
inlineexplicit |
Definition at line 61 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 85 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 72 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 99 of file dropdown_common_type.h.
References StrNaturalCompare().
|
inlineoverride |
Definition at line 79 of file dropdown_common_type.h.
|
inline |
Definition at line 66 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 77 of file dropdown_common_type.h.
|
private |
Dimensions of string.
Definition at line 58 of file dropdown_common_type.h.
|
private |
String to be drawn.
Definition at line 57 of file dropdown_common_type.h.