Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2006, 7:15:24 PM (18 years ago)
Author:
bensch
Message:

gui: click with positional information

File:
1 edited

Legend:

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

    r7925 r7929  
    111111
    112112
    113   void GLGuiWidget::click()
     113  void GLGuiWidget::click(const Vector2D& pos)
    114114  {
    115115    assert (!this->_pushed);
     
    117117    this->_pushed = true;
    118118
    119     this->clicked();
    120   }
    121 
    122   void GLGuiWidget::release()
     119    this->clicked(pos);
     120  }
     121
     122  void GLGuiWidget::release(const Vector2D& pos)
    123123  {
    124124    if (this->_pushed)
     
    126126      this->widgetSignals[Signal_release]("none");
    127127
    128       this->released();
     128      this->released(pos);
    129129      this->_pushed = false;
    130130    }
     
    132132
    133133
    134   void GLGuiWidget::clicked()
     134  void GLGuiWidget::clicked(const Vector2D& pos)
    135135  {
    136136    this->frontMaterial().setDiffuse(0, 0, 1);
     
    138138  }
    139139
    140   void GLGuiWidget::released()
     140  void GLGuiWidget::released(const Vector2D& pos)
    141141  {
    142142    this->frontMaterial().setDiffuse(0,1,0);
Note: See TracChangeset for help on using the changeset viewer.