25typedef enum { UIP_NONE, UIP_EVENT, UIP_EVENT_STRING, UIP_SUBMENU, UIP_CMD, UIP_CVAR, UIP_SEPARATOR } uipopup_type;
26typedef enum { UIP_WHERE_RIGHT, UIP_WHERE_DOWN } uipopup_where;
28class uipopup_describe {
41uipopup_describe::uipopup_describe()
50uipopup_describe::uipopup_describe
62 this->material = material;
68uipopup_describe::~uipopup_describe()
70 if (this->data == NULL) {
78 if (this->type == UIP_CMD || this->type == UIP_CVAR) {
85class UIPopupMenu :
public UIWidget {
86 friend class UIPulldownMenu;
91 class UIPopupMenu *m_parentMenu;
92 class UIPopupMenu *m_submenuptr;
100 CLASS_PROTOTYPE( UIPopupMenu );
104 void MakeSubMenu(
void );
107 bool MouseInSubmenus(
void );
115 void YouAreASubmenu( UIPopupMenu *me );
116 void Draw(
void )
override;
117 void MouseReleased(
Event *ev );
118 void MouseMoved(
Event *ev );
119 void MouseExited(
Event *ev );
120 void Dismiss(
void );
121 void DismissEvent(
Event *ev );
122 void setAutoDismiss(
bool b );
123 void setNextSelection(
void );
124 void setPrevSelection(
void );
126 void setSelection(
int sel );
127 void setHighlightFGColor(
UColor c );
128 void setHighlightBGColor(
UColor c );
129 void setPopupHighlightBGColor(
str menu,
UColor c );
130 void setPopupHighlightFGColor(
str menu,
UColor c );
131 void getPulldown(
str title );
134uipopup_type UI_PopupTypeStringToInt(
str type);
Definition container.h:85
Definition listener.h:246
Definition uipoint2d.h:25