template<typename T>
class ImFusion::GUI::InputEventMapper< T >
Specialization of InputEventMapperBase with a templated action enumeration type to increase type safety.
See the documentation of InputEventMapperBase for details and usage examples.
|
| bool | addMapping (T action, MouseEvent::Button button, Flags< InputEvent::KeyboardModifier > modifiers) |
| | Adds a new mouse interaction metaphor and map it to the given action.
|
| |
| bool | addMapping (T action, KeyEvent::Key button, Flags< InputEvent::KeyboardModifier > modifiers) |
| | Adds a new keyboard interaction metaphor and map it to the given action.
|
| |
| int | removeMapping (T action) |
| | Removes all existing mappings for the given action and returns the number of mappings removed.
|
| |
| bool | removeMapping (T action, MouseEvent::Button button, Flags< InputEvent::KeyboardModifier > modifiers) |
| | Removes the given mouse interaction mapping.
|
| |
| bool | removeMapping (T action, KeyEvent::Key button, Flags< InputEvent::KeyboardModifier > modifiers) |
| | Removes the given keyboard interaction mapping.
|
| |
| std::optional< T > | matchAny (const InputEvent &event) const |
| |
| std::optional< T > | matchAny (MouseEvent::Button button, Flags< InputEvent::KeyboardModifier > modifiers) const |
| |
| std::optional< T > | matchAny (KeyEvent::Key key, Flags< InputEvent::KeyboardModifier > modifiers) const |
| |
| std::vector< T > | matchAll (const InputEvent &event) const |
| |
| std::vector< T > | matchAll (MouseEvent::Button button, Flags< InputEvent::KeyboardModifier > modifiers) const |
| |
| std::vector< T > | matchAll (KeyEvent::Key key, Flags< InputEvent::KeyboardModifier > modifiers) const |
| |
| bool | matches (const InputEvent &event, T action) const |
| |
| bool | matches (MouseEvent::Button button, Flags< InputEvent::KeyboardModifier > modifiers, T action) const |
| |
| bool | matches (KeyEvent::Key key, Flags< InputEvent::KeyboardModifier > modifiers, T action) const |
| |
|
bool | allowsDuplicateMappings () const |
| | Returns whether it should allow a single mouse/keyboard combination map to multiple different actions.
|
| |
|
void | setAllowDuplicateMappings (bool value) |
| | Sets whether it should allow a single mouse/keyboard combination map to multiple different actions.
|
| |
| bool | addMapping (int32_t action, MouseEvent::Button button, Flags< InputEvent::KeyboardModifier > modifiers) |
| | Adds a new mouse interaction metaphor and map it to the given action.
|
| |
| bool | addMapping (int32_t action, KeyEvent::Key key, Flags< InputEvent::KeyboardModifier > modifiers) |
| | Adds a new keyboard interaction metaphor and map it to the given action.
|
| |
|
int | removeMapping (int32_t action) |
| | Removes all existing mappings for the given action and returns the number of mappings removed.
|
| |
|
bool | removeMapping (int32_t action, MouseEvent::Button button, Flags< InputEvent::KeyboardModifier > modifiers) |
| | Removes the given mouse interaction mapping.
|
| |
|
bool | removeMapping (int32_t action, KeyEvent::Key key, Flags< InputEvent::KeyboardModifier > modifiers) |
| | Removes the given keyboard interaction mapping.
|
| |
|
void | clear () |
| | Removes all existing mappings.
|
| |
| std::optional< int32_t > | matchAny (const InputEvent &event) const |
| | Matches the given event against the defined mappings and returns the first corresponding action value.
|
| |
| std::optional< int32_t > | matchAny (MouseEvent::Button button, Flags< InputEvent::KeyboardModifier > modifiers) const |
| | Matches the given mouse interaction against the defined mappings and returns the first corresponding action value.
|
| |
| std::optional< int32_t > | matchAny (KeyEvent::Key key, Flags< InputEvent::KeyboardModifier > modifiers) const |
| | Matches the given keyboard interaction against the defined mappings and returns the first corresponding action value.
|
| |
| std::vector< int32_t > | matchAll (const InputEvent &event) const |
| | Matches the given event against the defined mappings and returns all corresponding action values.
|
| |
| std::vector< int32_t > | matchAll (MouseEvent::Button button, Flags< InputEvent::KeyboardModifier > modifiers) const |
| | Matches the given mouse interaction against the defined mappings and returns all corresponding action values.
|
| |
| std::vector< int32_t > | matchAll (KeyEvent::Key key, Flags< InputEvent::KeyboardModifier > modifiers) const |
| | Matches the given keyboard interaction against the defined mappings and returns all corresponding action values.
|
| |
|
bool | matches (const InputEvent &event, int32_t action) const |
| | Returns true if the given event matches the given action.
|
| |
|
bool | matches (MouseEvent::Button button, Flags< InputEvent::KeyboardModifier > modifiers, int32_t action) const |
| | Returns true if the given mouse interaction matches the given action.
|
| |
|
bool | matches (KeyEvent::Key key, Flags< InputEvent::KeyboardModifier > modifiers, int32_t action) const |
| | Returns true if the given keyboard interaction matches the given action.
|
| |
| void | configure (const Properties *p) override |
| | Configure this object instance by de-serializing the given Properties.
|
| |
| void | configuration (Properties *p) const override |
| | Serialize the current object configuration into the given Properties object.
|
| |
| virtual void | configureDefaults () |
| | Retrieve the properties of this object, replaces values with their defaults and sets it again.
|
| |
|
void | registerParameter (ParameterBase *param) |
| | Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration().
|
| |
|
void | unregisterParameter (const ParameterBase *param) |
| | Remove the given Parameter or SubProperty from the list of registered parameters.
|
| |
|
| Configurable (const Configurable &rhs) |
| |
|
| Configurable (Configurable &&rhs) noexcept |
| |
|
Configurable & | operator= (const Configurable &) |
| |
|
Configurable & | operator= (Configurable &&) noexcept |
| |