Changeset 7985 in orxonox.OLD for branches/gui/src/lib/gui/gl_gui/glgui_button.h
- Timestamp:
- May 30, 2006, 6:25:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_button.h
r7925 r7985 32 32 { 33 33 34 public:35 GLGuiButton(const std::string& label);36 virtual ~GLGuiButton();34 public: 35 GLGuiButton(const std::string& label); 36 virtual ~GLGuiButton(); 37 37 38 const std::string& getLabel() const { return this->label.getText(); };39 void setLabel(const std::string& label);38 const std::string& getLabel() const { return this->label.getText(); }; 39 void setLabel(const std::string& label); 40 40 41 virtual void draw() const; 41 virtual void draw() const; 42 43 DeclareSignal0(released); 44 DeclareSignal0(clicked); 45 46 protected: 47 virtual void clicking(const Vector2D& pos); 48 virtual void releasing(const Vector2D& pos); 42 49 43 50 private: … … 46 53 47 54 48 protected:55 protected: 49 56 50 Text label;57 Text label; 51 58 52 private:53 ButtonState state;59 private: 60 ButtonState state; 54 61 }; 55 62 }
Note: See TracChangeset
for help on using the changeset viewer.