osgEarth 2.1.1
Public Member Functions

MyClickHandler Struct Reference

Inheritance diagram for MyClickHandler:
Collaboration diagram for MyClickHandler:

List of all members.

Public Member Functions

void onClick (Control *control, const osg::Vec2f &pos, int mouseButtonMask)

Detailed Description

Definition at line 60 of file osgearth_controls.cpp.


Member Function Documentation

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;
    }

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines