|
OpenTTD Source 20260311-master-g511d3794ce
|
Drop down string component. More...
#include <dropdown_common_type.h>
Public Member Functions | |
| template<typename... Args> | |
| DropDownString (std::string &&string, Args &&... args) | |
| void | FilterText (StringFilter &string_filter) const override |
| Add text from this dropdown item to a string filter. | |
| 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 57 of file dropdown_common_type.h.
|
inlineexplicit |
Definition at line 62 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 93 of file dropdown_common_type.h.
|
inlineoverride |
Add text from this dropdown item to a string filter.
| string_filter | String filter to add text to. |
Definition at line 68 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 80 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 107 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 87 of file dropdown_common_type.h.
|
inline |
Definition at line 74 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 85 of file dropdown_common_type.h.
|
private |
Dimensions of string.
Definition at line 59 of file dropdown_common_type.h.
|
private |
String to be drawn.
Definition at line 58 of file dropdown_common_type.h.