OpenTTD Source 20241224-master-gf74b0cf984
|
Drop down icon component. More...
#include <dropdown_common_type.h>
Public Member Functions | |
template<typename... Args> | |
DropDownIcon (SpriteID sprite, PaletteID palette, Args &&... args) | |
template<typename... Args> | |
DropDownIcon (const Dimension &dim, SpriteID sprite, PaletteID palette, Args &&... args) | |
uint | Height () const override |
uint | Width () const override |
void | Draw (const Rect &full, const Rect &r, bool sel, Colours bg_colour) const override |
Private Attributes | |
SpriteID | sprite |
Sprite ID to be drawn. | |
PaletteID | palette |
Palette ID to use. | |
Dimension | dsprite |
Bounding box dimensions of sprite. | |
Dimension | dbounds |
Bounding box dimensions of bounds. | |
Drop down icon component.
TBase | Base component. |
TEnd | Position icon at end if true, or start if false. |
Definition at line 111 of file dropdown_common_type.h.
|
inlineexplicit |
Definition at line 118 of file dropdown_common_type.h.
|
inlineexplicit |
Definition at line 125 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 133 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 130 of file dropdown_common_type.h.
|
inlineoverride |
Definition at line 131 of file dropdown_common_type.h.
|
private |
Bounding box dimensions of bounds.
Definition at line 115 of file dropdown_common_type.h.
|
private |
Bounding box dimensions of sprite.
Definition at line 114 of file dropdown_common_type.h.
|
private |
Palette ID to use.
Definition at line 113 of file dropdown_common_type.h.
|
private |
Sprite ID to be drawn.
Definition at line 112 of file dropdown_common_type.h.