30 #ifndef _CEGUIMenuItem_h_
31 #define _CEGUIMenuItem_h_
33 #include "../CEGUIBase.h"
34 #include "../CEGUIWindow.h"
35 #include "CEGUIItemEntry.h"
37 #include "CEGUIMenuItemProperties.h"
40 # pragma warning(push)
41 # pragma warning(disable : 4251)
79 bool isHovering(
void)
const
92 bool isPushed(
void)
const
102 bool isOpened(
void)
const
111 bool isPopupClosing(
void)
const
113 return d_popupClosing;
120 bool hasAutoPopup(
void)
const
122 return d_autoPopupTimeout > 0.0f;
129 float getAutoPopupTimeout(
void)
const
131 return d_autoPopupTimeout;
138 void setAutoPopupTimeout(
float time)
140 d_autoPopupTimeout = time;
161 return d_popupOffset;
170 d_popupOffset = popupOffset;
196 void openPopupMenu(
bool notify =
true);
209 void closePopupMenu(
bool notify =
true);
219 bool togglePopupMenu(
void);
225 void startPopupClosing(
void);
231 void startPopupOpening(
void);
269 virtual void updateSelf(
float elapsed);
285 void updateInternalState(
const Point& mouse_pos);
295 void closeAllMenuItemPopups();
308 void setPopupMenu_impl(
PopupMenu* popup,
bool add_as_child =
true);
321 virtual bool testClassName_impl(
const String& class_name)
const
323 if (class_name ==
"MenuItem")
return true;
356 void addMenuItemProperties(
void);
362 virtual void addChild_impl(
Window* wnd);
367 #if defined(_MSC_VER)
368 # pragma warning(pop)
371 #endif // end of guard _CEGUIMenuItem_h_