Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8673 in orxonox.OLD for branches/gui/src/lib


Ignore:
Timestamp:
Jun 21, 2006, 3:43:44 PM (18 years ago)
Author:
bensch
Message:

added game_menu.cc

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

Legend:

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

    r8672 r8673  
    102102  void GLGuiHandler::selectNext()
    103103  {
    104     printf("searching next Widget\n");
    105104    // retrieve Objects.
    106105    const std::list<BaseObject*>* objects = ClassList::getList(CL_GLGUI_WIDGET);
  • branches/gui/src/lib/gui/gl/glgui_widget.h

    r8667 r8673  
    4848    /** @returns true if the widget is focusable */
    4949    bool focusable() const { return this->_focusable; };
    50     /** @param focusable sets if the Widget should be focusable */
    51     void setFocusable(bool focusable = true) { this->_focusable = focusable; };
    5250    /** @returns true if the position is inside of the Widget. @param position the position to check */
    5351    bool focusOverWidget(const Vector2D& position) const;
     
    6361    /** @returns true if the Widget is selectable */
    6462    bool selectable() const { return this->_selectable; }
    65     /** @param selectable true if the widget should be selectable */
    66     void setSelectable(bool selectable) { this->_selectable = selectable; }
    6763
    6864    /** @returns the currently Selected Widget (NULL if none is selected). */
     
    7470    void release(const Vector2D& pos);
    7571    bool clickable() const { return this->_clickable; };
    76     void setClickable(bool clickable = true) { this->_clickable = clickable; };
    7772
    7873    static void connect(GLGuiWidget* sender, Signal& signal, BaseObject* receiver, Slot executor);
     
    238233
    239234  protected:
     235    /** @param focusable sets if the Widget should be focusable */
     236    void setFocusable(bool focusable = true) { this->_focusable = focusable; };
     237    /** @param selectable true if the widget should be selectable */
     238    void setSelectable(bool selectable) { this->_selectable = selectable; }
     239    /** @param focusable true if the widget should be focusable */
     240    void setClickable(bool clickable = true) { this->_clickable = clickable; };
     241
     242
    240243    /// RENDERING
    241244    inline void beginDraw() const { glPushMatrix(); glTranslatef(this->getAbsCoor2D().x, this->getAbsCoor2D().y, 0); };
Note: See TracChangeset for help on using the changeset viewer.