|
OpenTTD Source 20251117-master-g7398d2e290
|
Drop down checkmark component. More...
#include <dropdown_common_type.h>
Public Member Functions | |
| template<typename... Args> | |
| DropDownCheck (bool checked, Args &&... args) | |
| 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 |
Private Attributes | |
| bool | checked |
| Is item checked. | |
| Dimension | dim |
| Dimension of checkmark. | |
Drop down checkmark component.
| TBase | Base component. |
| TFs | Font size. |
| TEnd | Position checkmark at end if true, or start if false. |
Definition at line 157 of file dropdown_common_type.h.
|
inlineexplicit |
Definition at line 162 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 176 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 167 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 170 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 168 of file dropdown_common_type.h.
|
private |
Is item checked.
Definition at line 158 of file dropdown_common_type.h.
|
private |
Dimension of checkmark.
Definition at line 159 of file dropdown_common_type.h.