Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2006, 1:57:33 AM (19 years ago)
Author:
bensch
Message:

gui: click and release work (internally)

File:
1 edited

Legend:

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

    r7881 r7883  
    5454    printf("%s received focus\n", this->getLabel().c_str());
    5555
     56    Vector test;
     57    this->frontMaterial().getDiffuseColor(test.x, test.y, test.z);
     58    test.debug();
    5659  }
    5760  void GLGuiPushButton::removedFocus()
     
    6164  }
    6265
     66  void GLGuiPushButton::clicked()
     67  {
     68    printf("%s clicked\n", this->getLabel().c_str());
     69  }
     70
     71
     72  void GLGuiPushButton::released()
     73  {
     74    printf("%s released\n", this->getLabel().c_str());
     75  }
    6376
    6477
     
    7285    GLGuiButton::draw();
    7386
    74     this->frontMat.select();
     87    this->frontMaterial().select();
    7588    glBegin(GL_QUADS);
    7689
     
    8194
    8295    glEnd();
    83 
    8496    this->endDraw();
    8597    //   this->label->draw();
Note: See TracChangeset for help on using the changeset viewer.