|
osgEarth 2.1.1
|
Inheritance diagram for MyClickHandler:
Collaboration diagram for MyClickHandler:Public Member Functions | |
| void | onClick (Control *control, const osg::Vec2f &pos, int mouseButtonMask) |
Definition at line 60 of file osgearth_controls.cpp.
| void MyClickHandler::onClick | ( | Control * | control, |
| const osg::Vec2f & | pos, | ||
| int | mouseButtonMask | ||
| ) | [inline, virtual] |
Click event with click position (negative values mean you're in the left/top padding)
Reimplemented from osgEarth::Util::Controls::ControlEventHandler.
Definition at line 62 of file osgearth_controls.cpp.
{
OE_NOTICE << "You clicked at (" << pos.x() << ", " << pos.y() << ") within the control."
<< std::endl;
}
1.7.3