Skip to content

Interactivity / MouseGesture

Namespace: Nodify.Interactivity

Assembly: Nodify

Inheritance: ObjectInputGestureMouseGestureMouseGesture

Represents a mouse gesture that optionally includes a specific key press as part of the gesture.

public sealed class MouseGesture : MouseGesture

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.

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.

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

public MouseGesture(MouseAction action);

Parameters

action MouseAction

public MouseGesture();

Whether to ignore modifier keys when releasing the mouse button.

public bool IgnoreModifierKeysOnRelease { get; set; }

Property Value

Boolean

Gets or sets the key that must be pressed to match this gesture.

public Key Key { get; set; }

Property Value

Key

public override bool Matches(object targetElement, InputEventArgs inputEventArgs);

Parameters

targetElement Object

inputEventArgs InputEventArgs

Returns

Boolean