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

OpenTTD Source 15.0-RC2

Public Member Functions
DropDownSpacer< TBase, TEnd > Class Template Reference

Drop down spacer component. More...

`#include <dropdown_common_type.h>`

Inheritance diagram for DropDownSpacer< TBase, TEnd >:

## Public Member Functions
template<typename... Args>
| DropDownSpacer (Args &&... args)
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

## Detailed Description

template<class TBase, bool TEnd = false>
class DropDownSpacer< TBase, TEnd >

Drop down spacer component.

Template Parameters

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

Definition at line 269 of file dropdown_common_type.h.

## Constructor & Destructor Documentation

## ◆ DropDownSpacer()

template<class TBase , bool TEnd = false>
template<typename... Args>

DropDownSpacer< TBase, TEnd >::DropDownSpacer | ( | Args &&... | args | ) |
| inlineexplicit

Definition at line 272 of file dropdown_common_type.h.

## Member Function Documentation

## ◆ Draw()

template<class TBase , bool TEnd = false>

void DropDownSpacer< TBase, TEnd >::Draw | ( | const Rect & | full,
|  | const Rect & | r,
|  | bool | sel,
|  | int | click_result,
|  | Colours | bg_colour
| ) |  | const
| inlineoverride

Definition at line 282 of file dropdown_common_type.h.

## ◆ OnClick()

template<class TBase , bool TEnd = false>

int DropDownSpacer< TBase, TEnd >::OnClick | ( | const Rect & | r,
|  | const Point & | pt
| ) |  | const
| inlineoverride

Definition at line 276 of file dropdown_common_type.h.

## ◆ Width()

template<class TBase , bool TEnd = false>

uint DropDownSpacer< TBase, TEnd >::Width | ( |  | ) | const
| inlineoverride

Definition at line 274 of file dropdown_common_type.h.

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

- src/dropdown_common_type.h