Changeset 9558 in orxonox.OLD for branches/proxy/src/lib/gui/gl
- Timestamp:
- Jul 28, 2006, 12:18:58 PM (18 years ago)
- Location:
- branches/proxy/src/lib/gui/gl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/gui/gl/glgui_fixedposition_box.cc
r9556 r9558 48 48 { 49 49 case OrxGui::Center: 50 this->setAbsCoor2D(GLGuiHandler::getInstance()->resolution()/2.0 - this->getSize2D() / 2.0); 50 printf("_----------------------- "); 51 GLGuiHandler::getInstance()->resolution().debug(); 52 this->setAbsCoor2D((GLGuiHandler::getInstance()->resolution() - this->getSize2D()) / 2.0); 51 53 break; 52 54 default: … … 54 56 55 57 } 56 // resize everything.57 //for (widget = this->children.begin(); widget != this->children.end(); ++widget)58 //{}59 58 } 60 59 -
branches/proxy/src/lib/gui/gl/glgui_handler.cc
r9554 r9558 87 87 this->_cursor = NULL; 88 88 } 89 } 90 91 const Vector2D& GLGuiHandler::resolution() 92 { 93 if (this->_resolution == Vector2D::nullVector()) 94 this->_resolution = Vector2D(GraphicsEngine::getInstance()->getResolutionX(), GraphicsEngine::getInstance()->getResolutionY()); 95 return _resolution; 89 96 } 90 97 -
branches/proxy/src/lib/gui/gl/glgui_handler.h
r9546 r9558 34 34 Vector2D cursorPositionRel(const GLGuiWidget* const widget) const; 35 35 36 const Vector2D& resolution() const { return this->_resolution; };36 const Vector2D& resolution(); 37 37 38 38 void selectNext();
Note: See TracChangeset
for help on using the changeset viewer.