Changeset 7887 in orxonox.OLD for branches/gui/src
- Timestamp:
- May 27, 2006, 2:52:26 AM (19 years ago)
- Location:
- branches/gui/src/lib/gui/gl_gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_widget.cc
r7884 r7887 57 57 this->_focusable = false; 58 58 this->_clickable = false; 59 this->_pushed = false; 60 59 61 this->setVisibility(GLGUI_WIDGET_DEFAULT_VISIBLE); 60 62 … … 64 66 this->frontModel = 0; 65 67 this->backModel = 0; 68 66 69 67 70 this->widgetSignals.resize(SignalCount, SignalConnector()); … … 79 82 { 80 83 GLGuiWidget::_focused = NULL; 84 this->_pushed = false; 81 85 this->removedFocus(); 82 86 }; … … 96 100 void GLGuiWidget::click() 97 101 { 102 assert (!this->_pushed); 98 103 this->widgetSignals[Signal_click]("none"); 104 this->_pushed = true; 99 105 100 106 this->clicked(); … … 103 109 void GLGuiWidget::release() 104 110 { 105 this->widgetSignals[Signal_release]("none"); 111 if (this->_pushed) 112 { 113 this->widgetSignals[Signal_release]("none"); 106 114 107 this->released(); 115 this->released(); 116 this->_pushed = false; 117 } 108 118 } 109 119 -
branches/gui/src/lib/gui/gl_gui/glgui_widget.h
r7884 r7887 128 128 bool _clickable; //!< if this widget can be clicked upon. 129 129 130 bool _pushed; 131 130 132 static GLGuiWidget* _focused; 131 133 static GLGuiWidget* _inputGrabber;
Note: See TracChangeset
for help on using the changeset viewer.