Interactivity / MouseGesture
MouseGesture Class
Section titled “MouseGesture Class”Namespace: Nodify.Interactivity
Assembly: Nodify
Inheritance: Object → InputGesture → MouseGesture → MouseGesture
Represents a mouse gesture that optionally includes a specific key press as part of the gesture.
public sealed class MouseGesture : MouseGestureConstructors
Section titled “Constructors”MouseGesture(MouseAction, ModifierKeys, Key)
Section titled “MouseGesture(MouseAction, ModifierKeys, Key)”Initializes a new instance of the MouseGesture class with the specified mouse action, modifier keys, and a specific key.
public MouseGesture(MouseAction action, ModifierKeys modifiers, Key key);Parameters
action MouseAction: The action associated with this gesture.
modifiers ModifierKeys: The modifiers associated with this gesture.
key Key: The key required to match the gesture.
MouseGesture(MouseAction, Key)
Section titled “MouseGesture(MouseAction, Key)”Initializes a new instance of the MouseGesture class with the specified mouse action and key.
public MouseGesture(MouseAction action, Key key);Parameters
action MouseAction: The action associated with this gesture.
key Key: The key required to match the gesture.
MouseGesture(MouseAction, ModifierKeys)
Section titled “MouseGesture(MouseAction, ModifierKeys)”Initializes a new instance of the MouseGesture class with the specified mouse action and modifier keys.
public MouseGesture(MouseAction action, ModifierKeys modifiers);Parameters
action MouseAction: The action associated with this gesture.
modifiers ModifierKeys: The modifiers required to match the gesture.
MouseGesture(MouseAction, ModifierKeys, Boolean)
Section titled “MouseGesture(MouseAction, ModifierKeys, Boolean)”public MouseGesture(MouseAction action, ModifierKeys modifiers, bool ignoreModifierKeysOnRelease);Parameters
action MouseAction
modifiers ModifierKeys
ignoreModifierKeysOnRelease Boolean
MouseGesture(MouseAction)
Section titled “MouseGesture(MouseAction)”public MouseGesture(MouseAction action);Parameters
action MouseAction
MouseGesture()
Section titled “MouseGesture()”public MouseGesture();Properties
Section titled “Properties”IgnoreModifierKeysOnRelease
Section titled “IgnoreModifierKeysOnRelease”Whether to ignore modifier keys when releasing the mouse button.
public bool IgnoreModifierKeysOnRelease { get; set; }Property Value
Gets or sets the key that must be pressed to match this gesture.
public Key Key { get; set; }Property Value
Methods
Section titled “Methods”Matches(Object, InputEventArgs)
Section titled “Matches(Object, InputEventArgs)”public override bool Matches(object targetElement, InputEventArgs inputEventArgs);Parameters
targetElement Object
inputEventArgs InputEventArgs
Returns