Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2006, 5:41:21 AM (18 years ago)
Author:
bensch
Message:

better dispachers for events

File:
1 edited

Legend:

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

    r7891 r7896  
    4747  {
    4848    this->setClassID(CL_GLGUI_PUSHBUTTON, "GLGuiPushButton");
    49     this->frontMat.setDiffuse(1,0,0);
    5049  }
    5150
     
    5352  {
    5453    printf("%s received focus\n", this->getLabel().c_str());
    55     this->frontMaterial().setDiffuse(0, 1, 0);
     54    GLGuiWidget::receivedFocus();
    5655  }
    5756
     
    5958  {
    6059    printf("%s removed focus\n", this->getLabel().c_str());
    61     this->frontMaterial().setDiffuse(1, 0, 0);
     60    GLGuiWidget::removedFocus();
    6261
    6362  }
     
    6665  {
    6766    printf("%s clicked\n", this->getLabel().c_str());
    68     this->frontMaterial().setDiffuse(0, 0, 1);
     67    GLGuiWidget::clicked();
    6968  }
    7069
     
    7372  {
    7473    printf("%s released\n", this->getLabel().c_str());
    75     this->frontMat.setDiffuse(0,1,0);
     74    GLGuiWidget::released();
    7675  }
    7776
Note: See TracChangeset for help on using the changeset viewer.