class osgUtil::GUIEventAdapter: public osg::Referenced

Pure virtual base class for adapting platform specfic events into generic keyboard and mouse events.

Inheritance:


Public Classes

[more]enum MouseButtonMask
[more]enum EventType

Public Methods

[more] GUIEventAdapter()
[more]virtual EventType getEventType() const
Get the EventType of the GUI event
[more]virtual int getKey() const
key pressed, return -1 if inapropriate for this event.
[more]virtual int getButton() const
button pressed/released, return -1 if inappropriate for this event
[more]virtual int getXmin() const
window minimum x.
[more]virtual int getXmax() const
window maximum x.
[more]virtual int getYmin() const
window minimum y.
[more]virtual int getYmax() const
window maximum y.
[more]virtual int getX() const
current mouse x position
[more]virtual int getY() const
current mouse y position
[more]virtual unsigned int getButtonMask() const
current mouse button state
[more]virtual float time() const
time in seconds of event.

Protected Methods

[more]virtual ~GUIEventAdapter()
Force users to create on heap, so that mulitple referencing is safe


Documentation

Pure virtual base class for adapting platform specfic events into generic keyboard and mouse events.
o GUIEventAdapter()

oenum MouseButtonMask

o LEFT_BUTTON

o MIDDLE_BUTTON

o RIGHT_BUTTON

oenum EventType

o PUSH

o RELEASE

o DRAG

o MOVE

o KEYBOARD

o FRAME

o RESIZE

o NONE

ovirtual EventType getEventType() const
Get the EventType of the GUI event

ovirtual int getKey() const
key pressed, return -1 if inapropriate for this event.

ovirtual int getButton() const
button pressed/released, return -1 if inappropriate for this event

ovirtual int getXmin() const
window minimum x.

ovirtual int getXmax() const
window maximum x.

ovirtual int getYmin() const
window minimum y.

ovirtual int getYmax() const
window maximum y.

ovirtual int getX() const
current mouse x position

ovirtual int getY() const
current mouse y position

ovirtual unsigned int getButtonMask() const
current mouse button state

ovirtual float time() const
time in seconds of event.

ovirtual ~GUIEventAdapter()
Force users to create on heap, so that mulitple referencing is safe


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.