Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7943 in orxonox.OLD for branches


Ignore:
Timestamp:
May 28, 2006, 11:32:00 PM (18 years ago)
Author:
bensch
Message:

gui: selected introduced

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  
    157157      return Vector2D::nullVector();
    158158  }
    159   const Vector2D& GLGuiHandler::cursorPositionRel(const GLGuiWidget* const widget) const
     159  Vector2D GLGuiHandler::cursorPositionRel(const GLGuiWidget* const widget) const
    160160  {
    161161    assert (widget != NULL);
  • branches/gui/src/lib/gui/gl_gui/glgui_handler.h

    r7939 r7943  
    3232    Vector2D cursorPositionOverFocusedWidget() const;
    3333    const Vector2D& cursorPositionAbs() const;
    34     const Vector2D& cursorPositionRel(const GLGuiWidget* const widget) const;
     34    Vector2D cursorPositionRel(const GLGuiWidget* const widget) const;
    3535
    3636    void activate();
  • branches/gui/src/lib/gui/gl_gui/glgui_widget.cc

    r7936 r7943  
    4848  }
    4949
     50  GLGuiWidget* GLGuiWidget::_selected = NULL;
    5051  GLGuiWidget* GLGuiWidget::_focused = NULL;
    5152  GLGuiWidget* GLGuiWidget::_inputGrabber = NULL;
     
    9798  {
    9899    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);
    100101  }
    101102
     
    164165
    165166  void GLGuiWidget::destroyed()
    166   {
    167   };
     167  {}
     168  ;
    168169
    169170
     
    180181      return;
    181182
    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");
    184185
    185186    this->widgetSignals[signalType] = SignalConnector(object, signal);
  • branches/gui/src/lib/gui/gl_gui/glgui_widget.h

    r7936 r7943  
    164164    bool                           _pushed;
    165165
    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.
    168170  };
    169171}
Note: See TracChangeset for help on using the changeset viewer.