Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7926 in orxonox.OLD for branches/gui/src


Ignore:
Timestamp:
May 28, 2006, 6:01:15 PM (19 years ago)
Author:
bensch
Message:

orxonox/gui: all widgets correct again

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  
    129129  {
    130130    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));
    131134  }
    132135
     
    156159
    157160  /**
    158    * draws the GLGuiInputLine
     161   * @brief draws the GLGuiInputLine
    159162   */
    160163  void GLGuiInputLine::draw() const
     
    164167
    165168    this->frontMaterial().select();
    166     glBegin(GL_QUADS);
     169    GLGuiWidget::drawRect(this->frontRect());
    167170
    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();
    174171    this->endDraw();
    175172  }
  • branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.cc

    r7925 r7926  
    4545  void GLGuiPushButton::resize()
    4646  {
    47     this->label.setRelCoor2D(25, 5);
     47    this->label.setRelCoor2D(5, 5);
    4848    this->setSize2D(this->label.getSizeX2D() + 10, this->label.getSizeY2D() + 10);
     49
    4950    GLGuiWidget::resize();
    5051    this->frontRect().setTopLeft(1, 1);
Note: See TracChangeset for help on using the changeset viewer.