version 3.3

VRS::InputEvent Class Reference

Abstract Base Class for VRS Input Events. More...

#include <vrs/sg/inputevent.h>

Inheritance diagram for VRS::InputEvent:

VRS::CanvasEvent VRS::Event VRS::SharedObj VRS::Visitable VRS::ButtonEvent VRS::KeyEvent VRS::MotionEvent VRS::PointerEvent VRS::WheelEvent

List of all members.

Public Types

enum  Modifier {
  NoModifier = 0x0000, Shift = 0x0001, Lock = 0x0002, Ctrl = 0x0004,
  Mod1 = 0x0008, Alt = Mod1, Mod2 = 0x0010, Mod3 = 0x0020,
  Mod4 = 0x0040, Mod5 = 0x0080, AllKeys = 0x00ff
}
enum  Button {
  NoMouseButton = 0x0000, MouseButton1 = 0x0100, MouseButtonLeft = MouseButton1, MouseButton2 = 0x0200,
  MouseButtonMiddle = MouseButton2, MouseButton3 = 0x0400, MouseButtonRight = MouseButton3, MouseButton4 = 0x0800,
  MouseButton5 = 0x1000, AllMouseButtons = 0x1f00
}
enum  Change {
  NoChange = 0x0000, Pressed = 0x0001, Released = 0x0002, DoubleClick = 0x0004,
  AllChanges = 0x0007
}

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (Modifier)
 VRS_SERIALIZABLE_CLASS_ENUM (Button)
 VRS_SERIALIZABLE_CLASS_ENUM (Change)
Modifier modifier () const
VRSTime time () const
 The time at which the event was created.
 VRS_TYPEINFO (InputEvent, CanvasEvent)

Protected Member Functions

 InputEvent (Canvas *canvas, Modifier modifiers=InputEvent::NoModifier, VRSTime t=0)

Friends

class Canvas


Detailed Description

Abstract Base Class for VRS Input Events.

Member Enumeration Documentation

Enumerator:
NoModifier 
Shift 
Lock 
Ctrl 
Mod1 
Alt 
Mod2 
Mod3 
Mod4 
Mod5 
AllKeys 

Enumerator:
NoMouseButton 
MouseButton1 
MouseButtonLeft 
MouseButton2 
MouseButtonMiddle 
MouseButton3 
MouseButtonRight 
MouseButton4 
MouseButton5 
AllMouseButtons 

Enumerator:
NoChange 
Pressed 
Released 
DoubleClick 
AllChanges 


Constructor & Destructor Documentation

VRS::InputEvent::InputEvent ( Canvas canvas,
Modifier  modifiers = InputEvent::NoModifier,
VRSTime  t = 0 
) [protected]


Member Function Documentation

VRS::InputEvent::VRS_SERIALIZABLE_CLASS_ENUM ( Modifier   ) 

VRS::InputEvent::VRS_SERIALIZABLE_CLASS_ENUM ( Button   ) 

VRS::InputEvent::VRS_SERIALIZABLE_CLASS_ENUM ( Change   ) 

InputEvent::Modifier VRS::InputEvent::modifier (  )  const [inline]

VRSTime VRS::InputEvent::time (  )  const [inline]

The time at which the event was created.

VRS::InputEvent::VRS_TYPEINFO ( InputEvent  ,
CanvasEvent   
)


Friends And Related Function Documentation

friend class Canvas [friend]


The documentation for this class was generated from the following file:

Generated on Mon May 20 06:00:34 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact