OpenTTD Source 20260206-master-g4d4e37dbf1
DropDownListCompanyItem Class Reference

Company name list item, with company-colour icon, name, and lock components. More...

Inheritance diagram for DropDownListCompanyItem:
DropDownIcon< DropDownIcon< DropDownString< DropDownListItem >, true > >

Public Member Functions

 DropDownListCompanyItem (CompanyID company, bool shaded)
Public Member Functions inherited from DropDownIcon< DropDownIcon< DropDownString< DropDownListItem >, true > >
 DropDownIcon (SpriteID sprite, PaletteID palette, Args &&... args)
uint Height () const override
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

Company name list item, with company-colour icon, name, and lock components.

Definition at line 103 of file toolbar_gui.cpp.

Constructor & Destructor Documentation

◆ DropDownListCompanyItem()

DropDownListCompanyItem::DropDownListCompanyItem ( CompanyID company,
bool shaded )
inline

Definition at line 105 of file toolbar_gui.cpp.


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