|
OpenTTD Source 20251213-master-g1091fa6071
|
Base list item class from which others are derived. More...
#include <dropdown_type.h>
Public Member Functions | |
| DropDownListItem (int result, bool masked=false, bool shaded=false) | |
| virtual bool | Selectable () const |
| virtual uint | Height () const |
| virtual uint | Width () const |
| virtual int | OnClick (const Rect &, const Point &) const |
| virtual void | Draw (const Rect &full, const Rect &, bool, int, Colours bg_colour) const |
| TextColour | GetColour (bool sel) const |
Data Fields | |
| int | result |
| Result value to return to window on selection. | |
| bool | masked |
| Masked and unselectable item. | |
| bool | shaded |
| Shaded item, affects text colour. | |
Base list item class from which others are derived.
Definition at line 23 of file dropdown_type.h.
|
inlineexplicit |
Definition at line 29 of file dropdown_type.h.
|
inlinevirtual |
Definition at line 41 of file dropdown_type.h.
|
inline |
Definition at line 46 of file dropdown_type.h.
|
inlinevirtual |
Definition at line 33 of file dropdown_type.h.
Definition at line 36 of file dropdown_type.h.
|
inlinevirtual |
Definition at line 32 of file dropdown_type.h.
|
inlinevirtual |
Definition at line 34 of file dropdown_type.h.
| bool DropDownListItem::masked |
Masked and unselectable item.
Definition at line 26 of file dropdown_type.h.
| int DropDownListItem::result |
Result value to return to window on selection.
Definition at line 25 of file dropdown_type.h.
| bool DropDownListItem::shaded |
Shaded item, affects text colour.
Definition at line 27 of file dropdown_type.h.