- Timestamp:
- May 28, 2006, 11:32:00 PM (18 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_handler.cc
r7939 r7943 157 157 return Vector2D::nullVector(); 158 158 } 159 const Vector2D&GLGuiHandler::cursorPositionRel(const GLGuiWidget* const widget) const159 Vector2D GLGuiHandler::cursorPositionRel(const GLGuiWidget* const widget) const 160 160 { 161 161 assert (widget != NULL); -
branches/gui/src/lib/gui/gl_gui/glgui_handler.h
r7939 r7943 32 32 Vector2D cursorPositionOverFocusedWidget() const; 33 33 const Vector2D& cursorPositionAbs() const; 34 const Vector2D&cursorPositionRel(const GLGuiWidget* const widget) const;34 Vector2D cursorPositionRel(const GLGuiWidget* const widget) const; 35 35 36 36 void activate(); -
branches/gui/src/lib/gui/gl_gui/glgui_widget.cc
r7936 r7943 48 48 } 49 49 50 GLGuiWidget* GLGuiWidget::_selected = NULL; 50 51 GLGuiWidget* GLGuiWidget::_focused = NULL; 51 52 GLGuiWidget* GLGuiWidget::_inputGrabber = NULL; … … 97 98 { 98 99 return (this->getAbsCoor2D().x < position.x && this->getAbsCoor2D().x + this->getSizeX2D() > position.x && 99 this->getAbsCoor2D().y < position.y && this->getAbsCoor2D().y + this->getSizeY2D() > position.y);100 this->getAbsCoor2D().y < position.y && this->getAbsCoor2D().y + this->getSizeY2D() > position.y); 100 101 } 101 102 … … 164 165 165 166 void GLGuiWidget::destroyed() 166 { 167 };167 {} 168 ; 168 169 169 170 … … 180 181 return; 181 182 182 // if (this->widgetSignals[signalType] != NULL)183 // PRINTF(2)("Already connected a Signal to '%s::%s' type %s... overwriting\n", this->getClassName(), this->getName(), "TEST");183 // if (this->widgetSignals[signalType] != NULL) 184 // PRINTF(2)("Already connected a Signal to '%s::%s' type %s... overwriting\n", this->getClassName(), this->getName(), "TEST"); 184 185 185 186 this->widgetSignals[signalType] = SignalConnector(object, signal); -
branches/gui/src/lib/gui/gl_gui/glgui_widget.h
r7936 r7943 164 164 bool _pushed; 165 165 166 static GLGuiWidget* _focused; 167 static GLGuiWidget* _inputGrabber; 166 static GLGuiWidget* _selected; //!< The currently selected Widget. 167 static GLGuiWidget* _focused; //!< The currently Focused Widget. 168 169 static GLGuiWidget* _inputGrabber; //!< The Widget that grabs input. 168 170 }; 169 171 }
Note: See TracChangeset
for help on using the changeset viewer.