OpenTTD Source: DropDownIcon< TBase, TEnd > Class Template Reference

OpenTTD Source 14.1

Public Member Functions | Private Attributes
DropDownIcon< TBase, TEnd > Class Template Reference

Drop down icon component. More...

`#include <dropdown_type.h>`

Inheritance diagram for DropDownIcon< TBase, TEnd >:

## 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.

## Detailed Description

### template<class TBase, bool TEnd = false>
class DropDownIcon< TBase, TEnd >

Drop down icon component.

Template Parameters

  TBase | Base component.
  TEnd | Position icon at end if true, or start if false.

Definition at line 140 of file dropdown_type.h.

The documentation for this class was generated from the following file:

- src/widgets/dropdown_type.h