Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2006, 2:40:44 PM (18 years ago)
Author:
bensch
Message:

PushButton Testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.cc

    r7779 r7873  
    2525
    2626  /**
    27    * standard constructor
    28   */
    29   GLGuiPushButton::GLGuiPushButton ()
     27   * @brief standard constructor
     28   */
     29  GLGuiPushButton::GLGuiPushButton (const std::string& label)
     30  :GLGuiButton(label)
    3031  {
    3132    this->init();
     
    3435
    3536  /**
    36    * standard deconstructor
     37   * @brief standard deconstructor
    3738  */
    3839  GLGuiPushButton::~GLGuiPushButton()
     
    4748    this->setClassID(CL_GLGUI_PUSHBUTTON, "GLGuiPushButton");
    4849    this->frontMat.setDiffuse(1,0,0);
    49     //  this->label->setRelCoor2D(10, 10);
    5050  }
    5151
     
    5656  {
    5757    this->startDraw();
    58 
    59     //  GLGuiButton::draw();
     58    GLGuiButton::draw();
    6059
    6160    this->frontMat.select();
    6261    glBegin(GL_QUADS);
    6362
    64     glVertex2d(0,0);
    65     glVertex2d(0, this->getSizeY2D());
    66     glVertex2d(this->getSizeX2D(), this->getSizeY2D());
    67     glVertex2d(this->getSizeX2D(),0);
     63    glVertex2d(1, 1);
     64    glVertex2d(1, this->getSizeY2D() -1);
     65    glVertex2d(this->getSizeX2D() -1, this->getSizeY2D()-1);
     66    glVertex2d(this->getSizeX2D()-1,1);
    6867
    6968    glEnd();
Note: See TracChangeset for help on using the changeset viewer.