Class PanEventArgs
FormsGestures Pan event arguments.
Inherited Members
Namespace: FormsGestures
Assembly: FormsGestures.dll
Syntax
public class PanEventArgs : BaseGestureEventArgs
Constructors
PanEventArgs(PanEventArgs, Listener)
constructs new PanEventArgs
Declaration
public PanEventArgs(PanEventArgs source = null, Listener newListener = null)
Parameters
Type | Name | Description |
---|---|---|
PanEventArgs | source | |
Listener | newListener |
Properties
DeltaDistance
distance since last sample of pan motion
Declaration
public virtual Point DeltaDistance { get; protected set; }
Property Value
Type | Description |
---|---|
Point |
TotalDistance
total distance of pan motion
Declaration
public virtual Point TotalDistance { get; protected set; }
Property Value
Type | Description |
---|---|
Point |
Velocity
currently velocity of pan motion
Declaration
public virtual Point Velocity { get; protected set; }
Property Value
Type | Description |
---|---|
Point |
Methods
CalculateDistances(BaseGestureEventArgs)
calculates the distance traversed since last sample
Declaration
protected void CalculateDistances(BaseGestureEventArgs previous)
Parameters
Type | Name | Description |
---|---|---|
BaseGestureEventArgs | previous |
Equals(PanEventArgs)
Equality test
Declaration
public bool Equals(PanEventArgs other)
Parameters
Type | Name | Description |
---|---|---|
PanEventArgs | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Equality test
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
GetHashCode()
returns hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
ToString()
Returns a String that represents the current PanEventArgs.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents the current PanEventArgs. |
Overrides
ValueFrom(PanEventArgs)
Updates properties from the values from another instance
Declaration
public void ValueFrom(PanEventArgs source)
Parameters
Type | Name | Description |
---|---|---|
PanEventArgs | source |