Skip to content

Nodify_Interactivity_MouseGesture

miroiu edited this page Dec 23, 2024 · 1 revision

MouseGesture Class

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  

Constructors

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)

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)

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)

public MouseGesture(MouseAction action, ModifierKeys modifiers, bool ignoreModifierKeysOnRelease);  

Parameters

action MouseAction

modifiers ModifierKeys

ignoreModifierKeysOnRelease Boolean

MouseGesture(MouseAction)

public MouseGesture(MouseAction action);  

Parameters

action MouseAction

MouseGesture()

public MouseGesture();  

Properties

IgnoreModifierKeysOnRelease

Whether to ignore modifier keys when releasing the mouse button.

public bool IgnoreModifierKeysOnRelease { get; set; }  

Property Value

Boolean

Key

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

public Key Key { get; set; }  

Property Value

Key

Methods

Matches(Object, InputEventArgs)

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

Parameters

targetElement Object

inputEventArgs InputEventArgs

Returns

Boolean

Clone this wiki locally