Changeset 8673 in orxonox.OLD for branches/gui/src/lib
- Timestamp:
- Jun 21, 2006, 3:43:44 PM (19 years ago)
- 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 102 102 void GLGuiHandler::selectNext() 103 103 { 104 printf("searching next Widget\n");105 104 // retrieve Objects. 106 105 const std::list<BaseObject*>* objects = ClassList::getList(CL_GLGUI_WIDGET); -
branches/gui/src/lib/gui/gl/glgui_widget.h
r8667 r8673 48 48 /** @returns true if the widget is focusable */ 49 49 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; };52 50 /** @returns true if the position is inside of the Widget. @param position the position to check */ 53 51 bool focusOverWidget(const Vector2D& position) const; … … 63 61 /** @returns true if the Widget is selectable */ 64 62 bool selectable() const { return this->_selectable; } 65 /** @param selectable true if the widget should be selectable */66 void setSelectable(bool selectable) { this->_selectable = selectable; }67 63 68 64 /** @returns the currently Selected Widget (NULL if none is selected). */ … … 74 70 void release(const Vector2D& pos); 75 71 bool clickable() const { return this->_clickable; }; 76 void setClickable(bool clickable = true) { this->_clickable = clickable; };77 72 78 73 static void connect(GLGuiWidget* sender, Signal& signal, BaseObject* receiver, Slot executor); … … 238 233 239 234 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 240 243 /// RENDERING 241 244 inline void beginDraw() const { glPushMatrix(); glTranslatef(this->getAbsCoor2D().x, this->getAbsCoor2D().y, 0); };
Note: See TracChangeset
for help on using the changeset viewer.