Changeset 7881 in orxonox.OLD for branches/gui/src
- Timestamp:
- May 26, 2006, 11:46:07 PM (19 years ago)
- Location:
- branches/gui/src/lib/gui/gl_gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_button.h
r7873 r7881 36 36 virtual ~GLGuiButton(); 37 37 38 const std::string& getLabel() const { return this->label.getText(); }; 38 39 void setLabel(const std::string& label); 39 40 -
branches/gui/src/lib/gui/gl_gui/glgui_handler.cc
r7880 r7881 107 107 { 108 108 GLGuiWidget* widget = dynamic_cast<GLGuiWidget*>(*it); 109 if (widget-> focusOverWidget(this->cursor->getAbsCoor2D().x, this->cursor->getAbsCoor2D().y))109 if (widget->isVisible() && widget->focusOverWidget(this->cursor->getAbsCoor2D().x, this->cursor->getAbsCoor2D().y)) 110 110 { 111 111 // receiving Focus 112 112 if (GLGuiWidget::focused() != widget) 113 113 { 114 printf("yeah\n");115 114 widget->giveFocus(); 115 printf("%s\n", widget->getClassName()); 116 116 } 117 117 } -
branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.cc
r7873 r7881 50 50 } 51 51 52 void GLGuiPushButton::receivedFocus() 53 { 54 printf("%s received focus\n", this->getLabel().c_str()); 55 56 } 57 void GLGuiPushButton::removedFocus() 58 { 59 printf("%s removed focus\n", this->getLabel().c_str()); 60 61 } 62 63 64 65 52 66 /** 53 67 * draws the GLGuiPushButton -
branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.h
r7873 r7881 27 27 28 28 29 virtual void receivedFocus(); 30 virtual void removedFocus(); 29 31 virtual void draw() const; 30 32 virtual void update();
Note: See TracChangeset
for help on using the changeset viewer.