Changeset 8425 in orxonox.OLD for branches/gui/src
- Timestamp:
- Jun 15, 2006, 12:04:42 AM (18 years ago)
- Location:
- branches/gui/src/lib/gui/gl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/glgui_inputline.cc
r8424 r8425 163 163 void GLGuiInputLine::resize() 164 164 { 165 this->_text.setRelCoor2D(this->borderLeft() + 2.0, this->borderTop() + 2.0);166 this->setSize2D( this->_text.getSize2D() + Vector2D(borderLeft() + borderRight() + 4.0, borderTop() + borderBottom() + 4.0));165 this->_text.setRelCoor2D(this->borderLeft(), this->borderTop()); 166 this->setSize2D( this->_text.getSize2D() + Vector2D(borderLeft() + borderRight(), borderTop() + borderBottom())); 167 167 GLGuiWidget::resize(); 168 168 /* this->frontRect().setTopLeft(borderLeft(), borderTop()); -
branches/gui/src/lib/gui/gl/glgui_pushbutton.cc
r8378 r8425 45 45 void GLGuiPushButton::resize() 46 46 { 47 this->labelText().setRelCoor2D(borderLeft() + 5, borderTop() + 5);48 this->setSize2D(this->labelText().getSizeX2D() + 10 + borderLeft()+borderRight(), this->labelText().getSizeY2D() + 10+ borderTop() + borderBottom() );47 this->labelText().setRelCoor2D(borderLeft(), borderTop()); 48 this->setSize2D(this->labelText().getSizeX2D() + borderLeft() + borderRight(), this->labelText().getSizeY2D() + borderTop() + borderBottom() ); 49 49 50 50 GLGuiWidget::resize(); … … 98 98 99 99 this->endDraw(); 100 // this->label->draw();101 // printf("test");102 100 } 103 101 -
branches/gui/src/lib/gui/gl/glgui_widget.cc
r8424 r8425 70 70 this->_frontColor.setColor(1.0, 0.0, 0.0); 71 71 72 this->_borderLeft = 1 0.0;72 this->_borderLeft = 15.0; 73 73 this->_borderRight = 1.0; 74 74 this->_borderTop = 1.0;
Note: See TracChangeset
for help on using the changeset viewer.