| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/sg/buttonevent.h>

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 |
| 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 | |||
| ) |
| 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 | ||||
| ) |
friend class Canvas [friend] |
Reimplemented from VRS::InputEvent.