30 #ifndef _CEGUIMenuItem_h_
31 #define _CEGUIMenuItem_h_
34 #include "../Window.h"
35 #include "./ItemEntry.h"
38 # pragma warning(push)
39 # pragma warning(disable : 4251)
77 bool isHovering(
void)
const
90 bool isPushed(
void)
const
100 bool isOpened(
void)
const
109 bool isPopupClosing(
void)
const
111 return d_popupClosing;
118 bool hasAutoPopup(
void)
const
120 return d_autoPopupTimeout > 0.0f;
127 float getAutoPopupTimeout(
void)
const
129 return d_autoPopupTimeout;
136 void setAutoPopupTimeout(
float time)
138 d_autoPopupTimeout = time;
159 return d_popupOffset;
168 d_popupOffset = popupOffset;
194 void openPopupMenu(
bool notify =
true);
207 void closePopupMenu(
bool notify =
true);
217 bool togglePopupMenu(
void);
223 void startPopupClosing(
void);
229 void startPopupOpening(
void);
267 virtual void updateSelf(
float elapsed);
283 void updateInternalState(
const Vector2f& mouse_pos);
293 void closeAllMenuItemPopups();
306 void setPopupMenu_impl(
PopupMenu* popup,
bool add_as_child =
true);
330 void addMenuItemProperties(
void);
335 virtual void addChild_impl(
Element* element);
340 #if defined(_MSC_VER)
341 # pragma warning(pop)
344 #endif // end of guard _CEGUIMenuItem_h_