OpenTTD Source 20250206-master-g6089ed8059
DropDownIndent< TBase, TEnd > Class Template Reference

Drop down indent component. More...

#include <dropdown_common_type.h>

Inheritance diagram for DropDownIndent< TBase, TEnd >:

Public Member Functions

template<typename... Args>
 DropDownIndent (uint indent, Args &&... args)
 
uint Width () const override
 
void Draw (const Rect &full, const Rect &r, bool sel, Colours bg_colour) const override
 

Private Attributes

uint indent
 

Detailed Description

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

Drop down indent component.

Template Parameters
TBaseBase component.
TEndPosition checkmark at end if true, or start if false.

Definition at line 178 of file dropdown_common_type.h.

Constructor & Destructor Documentation

◆ DropDownIndent()

template<class TBase , bool TEnd = false>
template<typename... Args>
DropDownIndent< TBase, TEnd >::DropDownIndent ( uint  indent,
Args &&...  args 
)
inlineexplicit

Definition at line 182 of file dropdown_common_type.h.

Member Function Documentation

◆ Draw()

template<class TBase , bool TEnd = false>
void DropDownIndent< TBase, TEnd >::Draw ( const Rect full,
const Rect r,
bool  sel,
Colours  bg_colour 
) const
inlineoverride

Definition at line 186 of file dropdown_common_type.h.

◆ Width()

template<class TBase , bool TEnd = false>
uint DropDownIndent< TBase, TEnd >::Width ( ) const
inlineoverride

Definition at line 184 of file dropdown_common_type.h.

Field Documentation

◆ indent

template<class TBase , bool TEnd = false>
uint DropDownIndent< TBase, TEnd >::indent
private

Definition at line 179 of file dropdown_common_type.h.


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