Inherits AbstractScreenElement, and AbstractMouseListener.
Public Member Functions | |
Button (const std::wstring &label, const std::string &labelFont, const int nLabelFontSize, const Colour &fontColour, const Vector2 &labelPosition, int nLabelAlignment, Engine *pEngine) | |
void | SetButtonListener (AbstractButtonListenerPtr pListener) |
void | RecalculateBounds () |
Label * | GetLabel () const |
const Rect & | GetBounds () const |
virtual void | Update (const int nDelta) |
virtual void | Render (AbstractRenderer *pRenderer, const int nDelta) |
virtual void | OnMouseMove (const MouseEvent &e) |
virtual void | OnMouseButtonPressed (const MouseEvent &e) |
virtual void | OnMouseButtonReleased (const MouseEvent &e) |