
|
Pure virtual base class for adapting platform specific events into generic keyboard and mouse events.
Inheritance:
Public Methods-
virtual EventType getEventType() const = 0
- Get the EventType of the GUI event
-
virtual int getKey() const = 0
- key pressed, return -1 if inappr opriate for this event.
-
virtual int getButton() const = 0
- button pressed/released, return -1 if inappropriate for this event
-
virtual int getXmin() const = 0
- window minimum x.
-
virtual int getXmax() const = 0
- window maximum x.
-
virtual int getYmin() const = 0
- window minimum y.
-
virtual int getYmax() const = 0
- window maximum y.
-
virtual int getX() const = 0
- current mouse x position
-
virtual int getY() const = 0
- current mouse y position
-
virtual unsigned int getButtonMask() const = 0
- current mouse button state
-
virtual unsigned int getModKeyMask() const = 0
- current modkey state
-
virtual double time() const = 0
- time in seconds of event.
Public Members-
enum MouseButtonMask
-
enum EventType
-
enum ModKeyMask
Protected Methods-
GUIEventAdapter()
-
virtual ~GUIEventAdapter()
- Force users to create on heap, so that multiple referencing is safe
Documentation
Pure virtual base class for adapting platform specific events into
generic keyboard and mouse events.
Used as GUI toolkit-independent input into GUIEventAdapters. Viewer
writers should subclass this base class to implement the functionality
to translate one of their GUI events, e.g. a Qt Event or an MFC Event,
as appropriate.
enum MouseButtonMask
LEFT_MOUSE_BUTTON
MIDDLE_MOUSE_BUTTON
RIGHT_MOUSE_BUTTON
enum EventType
PUSH
RELEASE
DOUBLECLICK
DRAG
MOVE
KEYDOWN
KEYUP
FRAME
RESIZE
NONE
enum ModKeyMask
MODKEY_LEFT_SHIFT
MODKEY_RIGHT_SHIFT
MODKEY_LEFT_CTRL
MODKEY_RIGHT_CTRL
MODKEY_LEFT_ALT
MODKEY_RIGHT_ALT
MODKEY_LEFT_META
MODKEY_RIGHT_META
MODKEY_NUM_LOCK
MODKEY_CAPS_LOCK
MODKEY_CTRL
MODKEY_SHIFT
MODKEY_ALT
MODKEY_META
virtual EventType getEventType() const = 0
- Get the EventType of the GUI event
virtual int getKey() const = 0
- key pressed, return -1 if inappr opriate for this event.
virtual int getButton() const = 0
- button pressed/released, return -1 if inappropriate for this event
virtual int getXmin() const = 0
- window minimum x.
virtual int getXmax() const = 0
- window maximum x.
virtual int getYmin() const = 0
- window minimum y.
virtual int getYmax() const = 0
- window maximum y.
virtual int getX() const = 0
- current mouse x position
virtual int getY() const = 0
- current mouse y position
virtual unsigned int getButtonMask() const = 0
- current mouse button state
virtual unsigned int getModKeyMask() const = 0
- current modkey state
virtual double time() const = 0
- time in seconds of event.
GUIEventAdapter()
virtual ~GUIEventAdapter()
- Force users to create on heap, so that multiple 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++.
|