Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9240 in orxonox.OLD for trunk/src/lib/gui


Ignore:
Timestamp:
Jul 6, 2006, 12:25:44 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: better signal handler.
patched by chrigi

Location:
trunk/src/lib/gui/gl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl/glgui_handler.cc

    r9235 r9240  
    268268
    269269
    270   Vector2D GLGuiHandler::cursorPositionOverFocusedWidget() const
    271   {
    272     return (this->_cursor != NULL) ? this->_cursor->getAbsCoor2D() : Vector2D(0,0);
     270  const Vector2D& GLGuiHandler::cursorPositionOverFocusedWidget() const
     271  {
     272    return (this->_cursor != NULL) ? this->_cursor->getAbsCoor2D() : Vector2D::nullVector();
    273273  }
    274274
  • trunk/src/lib/gui/gl/glgui_handler.h

    r8717 r9240  
    3030    GLGuiCursor* cursor() const { return this->_cursor; }
    3131
    32     Vector2D cursorPositionOverFocusedWidget() const;
     32    const Vector2D& cursorPositionOverFocusedWidget() const;
    3333    const Vector2D& cursorPositionAbs() const;
    3434    Vector2D cursorPositionRel(const GLGuiWidget* const widget) const;
Note: See TracChangeset for help on using the changeset viewer.