DropDownListItem Class Reference

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

#include <dropdown_type.h>

Inheritance diagram for DropDownListItem:
DropDownListCharStringItem DropDownListColourItem DropDownListCompanyItem DropDownListPresetItem DropDownListStringItem 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 23 of file dropdown_type.h.


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

Generated on Fri Mar 4 21:37:52 2011 for OpenTTD by  doxygen 1.6.1