Changeset 7926 in orxonox.OLD for branches/gui/src
- Timestamp:
- May 28, 2006, 6:01:15 PM (18 years ago)
- Location:
- branches/gui/src/lib/gui/gl_gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_inputline.cc
r7919 r7926 129 129 { 130 130 this->setSize2D( this->text.getSize2D() + Vector2D(8, 8)); 131 GLGuiWidget::resize(); 132 this->frontRect().setTopLeft(1,1); 133 this->frontRect().setSize(this->getSize2D() - Vector2D(2,2)); 131 134 } 132 135 … … 156 159 157 160 /** 158 * draws the GLGuiInputLine161 * @brief draws the GLGuiInputLine 159 162 */ 160 163 void GLGuiInputLine::draw() const … … 164 167 165 168 this->frontMaterial().select(); 166 glBegin(GL_QUADS);169 GLGuiWidget::drawRect(this->frontRect()); 167 170 168 glTexCoord2i(0,0); glVertex2d(3, 3);169 glTexCoord2i(0,1); glVertex2d(3, this->getSizeY2D() - 3);170 glTexCoord2i(1,1); glVertex2d(this->getSizeX2D() - 3, this->getSizeY2D() -3);171 glTexCoord2i(1,0); glVertex2d(this->getSizeX2D() - 3, 3);172 173 glEnd();174 171 this->endDraw(); 175 172 } -
branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.cc
r7925 r7926 45 45 void GLGuiPushButton::resize() 46 46 { 47 this->label.setRelCoor2D( 25, 5);47 this->label.setRelCoor2D(5, 5); 48 48 this->setSize2D(this->label.getSizeX2D() + 10, this->label.getSizeY2D() + 10); 49 49 50 GLGuiWidget::resize(); 50 51 this->frontRect().setTopLeft(1, 1);
Note: See TracChangeset
for help on using the changeset viewer.