OpenTTD Source  20240919-master-gdf0233f4c2
DropDownListItem Class Reference

Base list item class from which others are derived. More...

#include <dropdown_type.h>

Inheritance diagram for DropDownListItem:
DropDownString< DropDownListItem > DropDownIcon< DropDownString< DropDownListItem > > DropDownListColourItem< TSprite >

Public Member Functions

 DropDownListItem (int result, bool masked=false, bool shaded=false)
 
virtual bool Selectable () const
 
virtual uint Height () const
 
virtual uint Width () const
 
virtual void Draw (const Rect &full, const Rect &, bool, Colours bg_colour) const
 
TextColour GetColour (bool sel) const
 

Data Fields

int result
 Result value to return to window on selection.
 
bool masked
 Masked and unselectable item.
 
bool shaded
 Shaded item, affects text colour.
 

Detailed Description

Base list item class from which others are derived.

Definition at line 22 of file dropdown_type.h.


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