version 3.3

VRS::ButtonEvent Class Reference

Button Click Event. More...

#include <vrs/sg/buttonevent.h>

Inheritance diagram for VRS::ButtonEvent:

VRS::InputEvent VRS::CanvasEvent VRS::Event VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 ButtonEvent (Canvas *canvas, InputEvent::Modifier modifiers=InputEvent::NoModifier, VRSTime time=0, InputEvent::Button button=InputEvent::MouseButton1, InputEvent::Change pressed=InputEvent::Pressed, int x=0, int y=0)
InputEvent::Button button () const
InputEvent::Change pressed () const
int x () const
int y () const
 Return the current canvas coordinates of the button.
 VRS_TYPEINFO (ButtonEvent, InputEvent)

Friends

class Canvas


Detailed Description

Button Click Event.

Constructor & Destructor Documentation

VRS::ButtonEvent::ButtonEvent ( Canvas canvas,
InputEvent::Modifier  modifiers = InputEvent::NoModifier,
VRSTime  time = 0,
InputEvent::Button  button = InputEvent::MouseButton1,
InputEvent::Change  pressed = InputEvent::Pressed,
int  x = 0,
int  y = 0 
)


Member Function Documentation

InputEvent::Button VRS::ButtonEvent::button (  )  const [inline]

InputEvent::Change VRS::ButtonEvent::pressed (  )  const [inline]

`button' returns the id of the button that triggered the event. A button triggeres this event if it is pressed or released. The id is one of `InputEventButton1, ..., or InputEvent::Button5'.

int VRS::ButtonEvent::x (  )  const [inline]

int VRS::ButtonEvent::y (  )  const [inline]

Return the current canvas coordinates of the button.

VRS::ButtonEvent::VRS_TYPEINFO ( ButtonEvent  ,
InputEvent   
)


Friends And Related Function Documentation

friend class Canvas [friend]

Reimplemented from VRS::InputEvent.


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

Generated on Sun May 19 06:00:40 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact