29 #ifndef _CEGUIButtonBase_h_
30 #define _CEGUIButtonBase_h_
33 #include "../Window.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4251)
50 class CEGUIEXPORT ButtonBase :
public Window
63 bool isHovering(
void)
const {
return d_hovering;}
73 bool isPushed(
void)
const {
return d_pushed;}
78 void setPushedState(
const bool pushed);
87 ButtonBase(
const String& type,
const String& name);
94 virtual ~ButtonBase(
void);
101 virtual void onMouseMove(MouseEventArgs& e);
102 virtual void onMouseButtonDown(MouseEventArgs& e);
103 virtual void onMouseButtonUp(MouseEventArgs& e);
104 virtual void onCaptureLost(WindowEventArgs& e);
105 virtual void onMouseLeaves(MouseEventArgs& e);
121 void updateInternalState(
const Vector2f& mouse_pos);
123 bool calculateCurrentHoverState(
const Vector2f& mouse_pos);
134 #if defined(_MSC_VER)
135 # pragma warning(pop)
138 #endif // end of guard _CEGUIButtonBase_h_