Skip to content

Nodify_Interactivity_DragState_TElement_

miroiu edited this page Dec 23, 2024 · 1 revision

DragState<TElement> Class

Namespace: Nodify.Interactivity

Assembly: Nodify

Inheritance: ObjectInputElementState<TElement>DragState<TElement>

public abstract class DragState<TElement> : InputElementState<TElement>  

Constructors

DragState<TElement>(TElement, InputGesture)

public DragState<TElement>(TElement element, InputGesture beginGesture);  

Parameters

element TElement

beginGesture InputGesture

DragState<TElement>(TElement, InputGesture, InputGesture)

public DragState<TElement>(TElement element, InputGesture beginGesture, InputGesture cancelGesture);  

Parameters

element TElement

beginGesture InputGesture

cancelGesture InputGesture

Properties

BeginGesture

protected InputGesture BeginGesture { get; set; }  

Property Value

InputGesture

CanBegin

protected virtual bool CanBegin { get; set; }  

Property Value

Boolean

CanCancel

protected virtual bool CanCancel { get; set; }  

Property Value

Boolean

CancelGesture

protected InputGesture CancelGesture { get; set; }  

Property Value

InputGesture

HasContextMenu

protected virtual bool HasContextMenu { get; set; }  

Property Value

Boolean

IsToggle

protected virtual bool IsToggle { get; set; }  

Property Value

Boolean

PositionElement

protected IInputElement PositionElement { get; set; }  

Property Value

IInputElement

Methods

CanCaptureInput(InputEventArgs)

protected virtual bool CanCaptureInput(InputEventArgs e);  

Parameters

e InputEventArgs

Returns

Boolean

CaptureInput(InputEventArgs)

protected virtual void CaptureInput(InputEventArgs e);  

Parameters

e InputEventArgs

GetInitialPosition(InputEventArgs)

protected virtual Point GetInitialPosition(InputEventArgs e);  

Parameters

e InputEventArgs

Returns

Point

IsInputCaptureLost(InputEventArgs)

protected virtual bool IsInputCaptureLost(InputEventArgs e);  

Parameters

e InputEventArgs

Returns

Boolean

IsInputEventPressed(InputEventArgs)

protected virtual bool IsInputEventPressed(InputEventArgs e);  

Parameters

e InputEventArgs

Returns

Boolean

IsInputEventReleased(InputEventArgs)

protected virtual bool IsInputEventReleased(InputEventArgs e);  

Parameters

e InputEventArgs

Returns

Boolean

OnBegin(InputEventArgs)

protected virtual void OnBegin(InputEventArgs e);  

Parameters

e InputEventArgs

OnCancel(InputEventArgs)

protected virtual void OnCancel(InputEventArgs e);  

Parameters

e InputEventArgs

OnEnd(InputEventArgs)

protected virtual void OnEnd(InputEventArgs e);  

Parameters

e InputEventArgs

Clone this wiki locally