7 #ifndef __SLIDESWITCH_H__
8 #define __SLIDESWITCH_H__
14 // Save state externally?
15 #warning Seems to be handled the same as PushButton, but without sanity checks. !!! FIX !!!
17 class SlideSwitch: public Element
20 SlideSwitch(uint32 x, uint32 y, bool * st, std::string s1, std::string s2);
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 *) {}
30 std::string text1, text2;
33 #endif // __SLIDESWITCH_H__