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

Public Member Functions | |
| ButtonCondition (InputEvent::Button buttonOrButtons=InputEvent::MouseButton1, InputEvent::Change pressed=InputEvent::Pressed, InputEvent::Modifier must_modifier=InputEvent::NoModifier, InputEvent::Modifier must_not_modifier=InputEvent::NoModifier, int multiplicity=1, VRSTime intervalForMultipleClicks=0.5) | |
| virtual | ~ButtonCondition () |
| bool | satisfied (Event *) const |
| For a given event, a condition is either satisfied or unsatisfied. | |
| InputEvent::Button | button () const |
| InputEvent::Modifier | mustModifier () const |
| InputEvent::Modifier | mustNotModifier () const |
| InputEvent::Change | press () const |
| int | multiplicity () const |
| VRSTime | interval () const |
| VRS_TYPEINFO (ButtonCondition, Condition) | |
| VRS_SERIALIZABLE (ButtonCondition) | |
| VRS::ButtonCondition::ButtonCondition | ( | InputEvent::Button | buttonOrButtons = InputEvent::MouseButton1, |
|
| InputEvent::Change | pressed = InputEvent::Pressed, |
|||
| InputEvent::Modifier | must_modifier = InputEvent::NoModifier, |
|||
| InputEvent::Modifier | must_not_modifier = InputEvent::NoModifier, |
|||
| int | multiplicity = 1, |
|||
| VRSTime | intervalForMultipleClicks = 0.5 | |||
| ) |
| virtual VRS::ButtonCondition::~ButtonCondition | ( | ) | [virtual] |
A click condition is satisfied for a corresponding click event with the given button(s) and modifiers. The button number can be ignored, i.e. the click event is satisfied for any button. Two types of modifier masks are specified: The mask of those modifiers which have to be pressed, and the mask of those modifiers which must not be pressed. Also the modifiers can be ignored. If 'pressed' is set to 'ignore', the condition is satisfied for both press and release events.
| bool VRS::ButtonCondition::satisfied | ( | Event * | ) | const [virtual] |
| InputEvent::Button VRS::ButtonCondition::button | ( | ) | const [inline] |
| InputEvent::Modifier VRS::ButtonCondition::mustModifier | ( | ) | const [inline] |
| InputEvent::Modifier VRS::ButtonCondition::mustNotModifier | ( | ) | const [inline] |
| InputEvent::Change VRS::ButtonCondition::press | ( | ) | const [inline] |
| int VRS::ButtonCondition::multiplicity | ( | ) | const [inline] |
| VRSTime VRS::ButtonCondition::interval | ( | ) | const [inline] |
| VRS::ButtonCondition::VRS_TYPEINFO | ( | ButtonCondition | , | |
| Condition | ||||
| ) |
| VRS::ButtonCondition::VRS_SERIALIZABLE | ( | ButtonCondition | ) |