5.3 KiB
5.3 KiB
DragState<TElement> Class
Namespace: Nodify.Interactivity
Assembly: Nodify
Inheritance: Object → InputElementState<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
CanBegin
protected virtual bool CanBegin { get; set; }
Property Value
CanCancel
protected virtual bool CanCancel { get; set; }
Property Value
CancelGesture
protected InputGesture CancelGesture { get; set; }
Property Value
HasContextMenu
protected virtual bool HasContextMenu { get; set; }
Property Value
IsToggle
protected virtual bool IsToggle { get; set; }
Property Value
PositionElement
protected IInputElement PositionElement { get; set; }
Property Value
Methods
CanCaptureInput(InputEventArgs)
protected virtual bool CanCaptureInput(InputEventArgs e);
Parameters
Returns
CaptureInput(InputEventArgs)
protected virtual void CaptureInput(InputEventArgs e);
Parameters
GetInitialPosition(InputEventArgs)
protected virtual Point GetInitialPosition(InputEventArgs e);
Parameters
Returns
IsInputCaptureLost(InputEventArgs)
protected virtual bool IsInputCaptureLost(InputEventArgs e);
Parameters
Returns
IsInputEventPressed(InputEventArgs)
protected virtual bool IsInputEventPressed(InputEventArgs e);
Parameters
Returns
IsInputEventReleased(InputEventArgs)
protected virtual bool IsInputEventReleased(InputEventArgs e);
Parameters
Returns
OnBegin(InputEventArgs)
protected virtual void OnBegin(InputEventArgs e);
Parameters
OnCancel(InputEventArgs)
protected virtual void OnCancel(InputEventArgs e);
Parameters
OnEnd(InputEventArgs)
protected virtual void OnEnd(InputEventArgs e);
Parameters