00001 /* 00002 * Button.h 00003 * 00004 * Created on: Feb 24, 2011 00005 * Author: lipari 00006 */ 00007 00008 #ifndef BUTTON_H_ 00009 #define BUTTON_H_ 00010 00011 #include <string> 00012 #include "WindowInterface.h" 00013 00014 class Button : public WindowInterface { 00015 bool pressed; 00016 std::string name; 00017 public: 00018 Button(const std::string &n); 00019 virtual ~Button(); 00020 void click(); 00021 void release(); 00022 bool getStatus() const; 00023 std::string getName() const {return name;} 00024 }; 00025 00026 #endif /* BUTTON_H_ */