- Timestamp:
- 11/19/09 12:30:22 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgwidgetbox/osgwidgetbox.cpp
r9370 r10779 19 19 ColorWidget(): 20 20 osgWidget::Widget("", 256.0f, 256.0f) { 21 setEventMask(osgWidget::EVENT_ALL); 21 22 } 22 23 23 bool mouseEnter(double, double, osgWidget::WindowManager*) {24 bool mouseEnter(double, double, const osgWidget::WindowManager*) { 24 25 addColor(-osgWidget::Color(0.4f, 0.4f, 0.4f, 0.0f)); 25 26 … … 29 30 } 30 31 31 bool mouseLeave(double, double, osgWidget::WindowManager*) {32 bool mouseLeave(double, double, const osgWidget::WindowManager*) { 32 33 addColor(osgWidget::Color(0.4f, 0.4f, 0.4f, 0.0f)); 33 34 … … 37 38 } 38 39 39 bool mouseOver(double x, double y, osgWidget::WindowManager*) {40 bool mouseOver(double x, double y, const osgWidget::WindowManager*) { 40 41 osgWidget::Color c = getImageColorAtPointerXY(x, y); 41 42
