29 #ifndef _CEGUIMenuItem_h_
30 #define _CEGUIMenuItem_h_
33 #include "../Window.h"
34 #include "./ItemEntry.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4251)
76 bool isHovering(
void)
const
89 bool isPushed(
void)
const
99 bool isOpened(
void)
const
108 bool isPopupClosing(
void)
const
110 return d_popupClosing;
117 bool hasAutoPopup(
void)
const
119 return d_autoPopupTimeout > 0.0f;
126 float getAutoPopupTimeout(
void)
const
128 return d_autoPopupTimeout;
135 void setAutoPopupTimeout(
float time)
137 d_autoPopupTimeout = time;
158 return d_popupOffset;
167 d_popupOffset = popupOffset;
193 void openPopupMenu(
bool notify =
true);
206 void closePopupMenu(
bool notify =
true);
216 bool togglePopupMenu(
void);
222 void startPopupClosing(
void);
228 void startPopupOpening(
void);
266 virtual void updateSelf(
float elapsed);
282 void updateInternalState(
const Vector2f& mouse_pos);
292 void closeAllMenuItemPopups();
305 void setPopupMenu_impl(
PopupMenu* popup,
bool add_as_child =
true);
329 void addMenuItemProperties(
void);
334 virtual void addChild_impl(
Element* element);
339 #if defined(_MSC_VER)
340 # pragma warning(pop)
343 #endif // end of guard _CEGUIMenuItem_h_