OneTouchRotateGestureRecognizer Class |
Namespace: DigitalRubyShared
public class OneTouchRotateGestureRecognizer : RotateGestureRecognizer
The OneTouchRotateGestureRecognizer type exposes the following members.
Name | Description | |
---|---|---|
OneTouchRotateGestureRecognizer |
Constructor - sets ThresholdUnits to 0.15f and AngleThreshold to 0.0f
|
Name | Description | |
---|---|---|
AllowSimultaneousExecutionIfPlatformSpecificViewsAreDifferent |
Allows simultaneous execution if the platform specific views do no match. Default is true.
(Inherited from GestureRecognizer.) | |
AngleThreshold |
Angle threshold in radians that must be met before rotation starts - this is the amount of rotation that must happen to start the gesture. Default is 0.05.
(Inherited from RotateGestureRecognizer.) | |
ClearTrackedTouchesOnEndOrFail |
Whether tracked touches are cleared when the gesture ends or fails, default is false. By setting to true, you allow the gesture to
possibly execute again with a different touch even if the original touch it failed on is still on-going. This is a special case,
so be sure to watch for problems if you set this to true, as leaving it false ensures the most correct behavior, especially
with lots of gestures at once.
(Inherited from GestureRecognizer.) | |
CurrentTrackedTouches |
The current tracked touches for the gesture
(Inherited from GestureRecognizer.) | |
CustomData |
Custom data for the gesture that you can attach, or just leave null if you don't need this
This is useful if you want to retrieve this in a callback function, but it is not require
for the gesture to work properly
(Inherited from GestureRecognizer.) | |
DeltaX |
Change in focus x in pixels
(Inherited from GestureRecognizer.) | |
DeltaY |
Change in focus y in pixels
(Inherited from GestureRecognizer.) | |
DistanceX |
The distance (in pixels) the gesture focus has moved from where it started along the x axis
(Inherited from GestureRecognizer.) | |
DistanceY |
The distance (in pixels) the gesture focus has moved from where it started along the y axis
(Inherited from GestureRecognizer.) | |
Enabled |
Whether the gesture is Enabled. Default is true.
(Inherited from GestureRecognizer.) | |
FocusX |
Focus x value in pixels (average of all touches)
(Inherited from GestureRecognizer.) | |
FocusY |
Focus y value in pixels (average of all touches)
(Inherited from GestureRecognizer.) | |
IsRestarting |
True if gesture is in process of restarting, false otherwise
(Inherited from GestureRecognizer.) | |
MaximumNumberOfTouchesToTrack |
The maximum number of touches to track. This gesture will never track more touches than this. Default is usually 1 or 2.
Not all gestures will honor values higher than 1.
(Inherited from GestureRecognizer.) | |
MinimumNumberOfTouchesToTrack |
The minimum number of touches to track. This gesture will not start unless this many touches are tracked. Default is usually 1 or 2.
Not all gestures will honor values higher than 1.
(Inherited from GestureRecognizer.) | |
PlatformSpecificView |
A platform specific view object that this gesture can execute in, null if none
(Inherited from GestureRecognizer.) | |
PlatformSpecificViewScale |
The platform specific view scale (default is 1.0). Change this if the view this gesture is attached to is being scaled.
(Inherited from GestureRecognizer.) | |
Pressure |
Average pressure of all tracked touches
(Inherited from GestureRecognizer.) | |
PrevFocusX |
Previous focus x
(Inherited from GestureRecognizer.) | |
PrevFocusY |
Previous focus y
(Inherited from GestureRecognizer.) | |
ReceivedAdditionalTouches |
Whether additional touches were added to the gesture since the last execute state.
(Inherited from GestureRecognizer.) | |
RequireGestureRecognizersToFail |
If this gesture reaches the EndPending state and the specified gestures fail,
this gestures will end. If the specified gesture begins, executes or ends,
then this gesture will immediately fail.
(Inherited from GestureRecognizer.) | |
RequireGestureRecognizerToFail |
Convenience method to add / remove one gesture to require failure on. Set to null to clear all require gestures to fail.
(Inherited from GestureRecognizer.) | |
ResetOnEnd |
Whether the gesture should reset when it ends
(Inherited from GestureRecognizer.) | |
RotationDegrees |
The current rotation angle in degrees.
(Inherited from RotateGestureRecognizer.) | |
RotationDegreesDelta |
The change in rotation degrees.
(Inherited from RotateGestureRecognizer.) | |
RotationRadians |
The current rotation angle in radians.
(Inherited from RotateGestureRecognizer.) | |
RotationRadiansDelta |
The change in rotation radians.
(Inherited from RotateGestureRecognizer.) | |
Speed |
The speed of the gesture in pixels using focus
(Inherited from GestureRecognizer.) | |
StartFocusX |
Start focus x value in pixels (average of all touches)
(Inherited from GestureRecognizer.) | |
StartFocusY |
Start focus y value in pixels (average of all touches)
(Inherited from GestureRecognizer.) | |
State |
Get the current gesture recognizer state
(Inherited from GestureRecognizer.) | |
ThresholdUnits |
The gesture focus must change distance by this number of units from the start focus in order to start. Default is 0.0.
(Inherited from RotateGestureRecognizer.) | |
TrackedTouchCountIsWithinRange |
Whether the current number of tracked touches is within the min and max number of touches to track
(Inherited from GestureRecognizer.) | |
VelocityX |
Velocity x in pixels using focus
(Inherited from GestureRecognizer.) | |
VelocityY |
Velocity y in pixels using focus
(Inherited from GestureRecognizer.) |
Name | Description | |
---|---|---|
AddRequiredGestureRecognizerToFail |
Require a gesture to fail in order for this gesture to end
(Inherited from GestureRecognizer.) | |
AllowSimultaneousExecution |
Allows the simultaneous execution with other gesture. This links both gestures so this method
only needs to be called once on one of the gestures.
Pass null to allow simultaneous execution with all gestures.
(Inherited from GestureRecognizer.) | |
AllowSimultaneousExecutionWithAllGestures |
Allows simultaneous execution with all gestures
(Inherited from GestureRecognizer.) | |
AreTrackedTouchesWithinDistance |
Determines whether any tracked touches are within the distance of the starting point of each tracked touch.
(Inherited from GestureRecognizer.) | |
BeginGestureRestart |
Allows the gesture to restart even if the touches are not lifted. This is only valid when called from the "Ended" state.
(Inherited from GestureRecognizer.) | |
CalculateFocus(ICollectionGestureTouch) |
Calculate the focus of the gesture
(Inherited from GestureRecognizer.) | |
CalculateFocus(ICollectionGestureTouch, Boolean) |
Calculate the focus of the gesture
(Inherited from GestureRecognizer.) | |
CurrentAngle |
Current angle - if AnglePointOverrideX and AnglePointOverrideY are set, these are used instead of the start touch location to determine the angle.
(Overrides RotateGestureRecognizerCurrentAngle.) | |
DisallowSimultaneousExecution |
Disallows the simultaneous execution with other gesture. This unlinks both gestures so this method
only needs to be called once on one of the gestures.
By default, gesures are not allowed to execute simultaneously, so you only need to call this method
if you previously allowed the gestures to execute simultaneously.
Pass null to disallow simulatneous execution with all gestures (i.e. you previously called
AllowSimultaneousExecution with a null value.
(Inherited from GestureRecognizer.) | |
DisallowSimultaneousExecutionWithAllGestures |
Disallows simultaneous execution with all gestures
(Inherited from GestureRecognizer.) | |
Dispose |
Dispose of the gesture and ensure it is removed from the global list of active gestures
(Inherited from GestureRecognizer.) | |
Distance(Single) |
Get the distance of a length, in units
(Inherited from GestureRecognizer.) | |
Distance(Single, Single) |
Gets the distance of a vector, in units
(Inherited from GestureRecognizer.) | |
DistanceBetweenPoints |
Gets the distance between two points, in units
(Inherited from GestureRecognizer.) | |
EndGestureRestart |
Restart the gesture with a set of begin touches
(Inherited from GestureRecognizer.) | |
Equals | (Inherited from Object.) | |
Finalize |
Finalizer
(Inherited from GestureRecognizer.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IgnoreTouch |
Ignore a touch until it is released
(Inherited from GestureRecognizer.) | |
MemberwiseClone | (Inherited from Object.) | |
PointsAreWithinDistance |
Determines whether two points are within a specified distance
(Inherited from GestureRecognizer.) | |
ProcessTouchesBegan |
Call with the touches that began
(Inherited from GestureRecognizer.) | |
ProcessTouchesCancelled |
Process cancelled touches
(Inherited from GestureRecognizer.) | |
ProcessTouchesEnded |
Call with the touches that ended
(Inherited from GestureRecognizer.) | |
ProcessTouchesMoved |
Call with the touches that moved
(Inherited from GestureRecognizer.) | |
RemoveRequiredGestureRecognizerToFail |
Remove a gesture needing to fail in order for this gesture to end
(Inherited from GestureRecognizer.) | |
Reset |
Reset all internal state for the gesture recognizer
(Inherited from GestureRecognizer.) | |
SetState |
Sets the state of the gesture. Continous gestures should set the executing state every time they change.
(Inherited from GestureRecognizer.) | |
Simulate |
Simulate a gesture
(Inherited from GestureRecognizer.) | |
StateChanged |
StateChanged
(Inherited from RotateGestureRecognizer.) | |
ToString |
ToString
(Inherited from GestureRecognizer.) | |
TouchesBegan |
TouchesBegan
(Inherited from RotateGestureRecognizer.) | |
TouchesEnded |
TouchesEnded
(Inherited from RotateGestureRecognizer.) | |
TouchesMoved |
TouchesMoved
(Inherited from RotateGestureRecognizer.) | |
TrackCurrentTrackedTouchesStartLocations |
Track all touches in CurrentTrackedTouches start locations
(Inherited from GestureRecognizer.) | |
TrackTouches |
Begin tracking the specified touch ids
(Inherited from GestureRecognizer.) |
Name | Description | |
---|---|---|
StateUpdated |
Fires when state is updated, use this instead of Updated, which has been deprecated.
The gesture object has a CurrentTrackedTouches property where you can access the current touches.
(Inherited from GestureRecognizer.) | |
Updated | Obsolete.
Executes when the gesture changes
(Inherited from GestureRecognizer.) |
Name | Description | |
---|---|---|
AnglePointOverrideX |
Normally angle is calculated against the start touch coordinate. This value allows using a different anchor for rotation purposes.
| |
AnglePointOverrideY |
Normally angle is calculated against the start touch coordinate. This value allows using a different anchor for rotation purposes.
|
Name | Description | |
---|---|---|
Log |
Log
(Defined by GestureLogger.) |