Changeset View
Changeset View
Standalone View
Standalone View
source/gui/CDropDown.h
Show All 28 Lines | --More info-- | ||||
Check GUI.h | Check GUI.h | ||||
*/ | */ | ||||
#ifndef INCLUDED_CDROPDOWN | #ifndef INCLUDED_CDROPDOWN | ||||
#define INCLUDED_CDROPDOWN | #define INCLUDED_CDROPDOWN | ||||
#include "GUI.h" | #include "GUI.h" | ||||
#include "CList.h" | #include "CListSingle.h" | ||||
/** | /** | ||||
* Drop Down | * Drop Down | ||||
* | * | ||||
* The control can be pressed, but we will not inherent | * The control can be pressed, but we will not inherent | ||||
* this behavior from IGUIButtonBehavior, because when | * this behavior from IGUIButtonBehavior, because when | ||||
* you press this control, the list with elements will | * you press this control, the list with elements will | ||||
* immediately appear, and not first after release | * immediately appear, and not first after release | ||||
* (which is the whole gist of the IGUIButtonBehavior). | * (which is the whole gist of the IGUIButtonBehavior). | ||||
*/ | */ | ||||
class CDropDown : public CList | class CDropDown : public CListSingle | ||||
{ | { | ||||
GUI_OBJECT(CDropDown) | GUI_OBJECT(CDropDown) | ||||
public: | public: | ||||
CDropDown(CGUI& pGUI); | CDropDown(CGUI& pGUI); | ||||
virtual ~CDropDown(); | virtual ~CDropDown(); | ||||
// virtual void ResetStates() { IGUIButtonBehavior::ResetStates(); } | // virtual void ResetStates() { IGUIButtonBehavior::ResetStates(); } | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator