Changeset 9547 in orxonox.OLD for branches/proxy/src/lib/gui/gl
- Timestamp:
- Jul 28, 2006, 11:23:52 AM (18 years ago)
- Location:
- branches/proxy/src/lib/gui/gl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/gui/gl/glgui_fixedposition_box.cc
r9546 r9547 26 26 */ 27 27 GLGuiFixedpositionBox::GLGuiFixedpositionBox (OrxGui::Position position, OrxGui::Orientation orientation) 28 GLGuiBox(orientation) 29 { 30 } 28 : GLGuiBox(orientation) 29 {} 31 30 32 31 … … 38 37 39 38 39 40 40 void GLGuiFixedpositionBox::setPosition(OrxGui::Position position) 41 41 { 42 42 this->_position = position; 43 this->resize ;43 this->resize(); 44 44 } 45 45 … … 49 49 GLGuiBox::resize(); 50 50 51 switch (this-> position)51 switch (this->_position) 52 52 { 53 53 case OrxGui::Center: 54 this->setAbsCoor2D(G uiHandler::getInstance()->resolution() - this->getSize2D() / 2.0);54 this->setAbsCoor2D(GLGuiHandler::getInstance()->resolution() - this->getSize2D() / 2.0); 55 55 break; 56 default: 57 printf("not done mode yet!!\n"); 56 58 57 59 } -
branches/proxy/src/lib/gui/gl/glgui_fixedposition_box.h
r9546 r9547 7 7 #define _GLGUI_FIXEDPOSITION_BOX_H 8 8 9 #include "glgui_container.h" 10 #include "glgui_defs.h" 9 #include "glgui_box.h" 11 10 12 11 namespace OrxGui … … 16 15 * 17 16 */ 18 class GLGuiFixedpositionBox : public GLGuiBox17 class GLGuiFixedpositionBox : public OrxGui::GLGuiBox 19 18 { 20 19 … … 23 22 virtual ~GLGuiFixedpositionBox(); 24 23 25 inline OrxGui::Position position() const { return _position; };24 inline OrxGui::Position position() const { return this->_position; }; 26 25 void setPosition(OrxGui::Position); 27 26
Note: See TracChangeset
for help on using the changeset viewer.