13 class Button: public Element
16 Button(uint32 x = 0, uint32 y = 0, uint32 w = 0, uint32 h = 0);
17 Button(uint32 x, uint32 y, uint32 w, uint32 h, uint32 * p);
18 Button(uint32 x, uint32 y, uint32 * p, uint32 * pH = NULL, uint32 * pD = NULL);
19 Button(uint32 x, uint32 y, uint32 w, uint32 h, std::string s);
20 Button(uint32 x, uint32 y, std::string s);
21 virtual void HandleKey(SDLKey key) {}
22 virtual void HandleMouseMove(uint32 x, uint32 y);
23 virtual void HandleMouseButton(uint32 x, uint32 y, bool mouseDown);
24 virtual void Draw(uint32 offsetX = 0, uint32 offsetY = 0);
25 virtual void Notify(Element *) {}
26 bool ButtonClicked(void);
27 void SetNotificationElement(Element * e);
30 bool activated, clicked, inside;
31 uint32 fgColor, bgColor;
32 uint32 * pic, * picHover, * picDown;
34 Element * elementToTell;
37 #endif // __BUTTON_H__