OpenTTD
Public Member Functions | Data Fields
DropDownListItem Class Reference

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

#include <dropdown_type.h>

Inheritance diagram for DropDownListItem:
DropDownListColourItem DropDownListCompanyItem DropDownListPresetItem DropDownListStringItem DropDownListCharStringItem DropDownListCheckedItem DropDownListParamStringItem

Public Member Functions

 DropDownListItem (int result, bool masked)
virtual bool Selectable () const
virtual uint Height (uint width) const
virtual uint Width () const
virtual void Draw (int left, int right, int top, int bottom, bool sel, int bg_colour) const

Data Fields

int result
 Result code to return to window on selection.
bool masked
 Masked and unselectable item.

Detailed Description

Base list item class from which others are derived.

If placed in a list it will appear as a horizontal line in the menu.

Definition at line 24 of file dropdown_type.h.


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