Class GestureLayer
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
The GestureLayer is used to detect gestures. Inherits Widget.
C#Copypublic class GestureLayer : Widget, IAccessibleObject
- Inheritance
- Implements
Constructors
GestureLayer(EvasObject)
Creates and initializes a new instance of the GestureLayer class.
Declaration
C#Copypublic GestureLayer(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | The parent is a given container which will be attached by the GestureLayer as a child. It's the EvasObject type. |
API Level: preview
Properties
Declaration
C#Copypublic bool Continues { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
API Level: preview
Declaration
C#Copypublic double DoubleTapTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
API Level: preview
Declaration
C#Copypublic int FlickTimeLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
Declaration
C#Copypublic bool HoldEvents { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
API Level: preview
LineAngularTolerance
Sets or gets the gesture layer line angular tolerance of an object.
Declaration
C#Copypublic double LineAngularTolerance { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
API Level: preview
LineDistanceTolerance
Sets or gets the gesture layer line distance tolerance of an object.
Declaration
C#Copypublic int LineDistanceTolerance { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
Declaration
C#Copypublic double LongTapTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
API Level: preview
Declaration
C#Copypublic int MinimumLineLength { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
RotateAngularTolerance
Sets or gets the gesture layer rotate angular tolerance of an object.
Declaration
C#Copypublic double RotateAngularTolerance { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
API Level: preview
Declaration
C#Copypublic double RotateStep { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
API Level: preview
Declaration
C#Copypublic int TapFingerSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
ZoomDistanceTolerance
Sets or gets the gesture layer zoom distance tolerance of an object.
Declaration
C#Copypublic int ZoomDistanceTolerance { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
Declaration
C#Copypublic double ZoomFingerFactor { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
API Level: preview
Declaration
C#Copypublic double ZoomStep { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
API Level: preview
Declaration
C#Copypublic double ZoomWheelFactor { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
API Level: preview
Methods
Attach(EvasObject)
Attaches a gesture layer widget to an Evas object (setting the widget's target). A gesture layer's target may be any Evas object. This object will be used to listen to mouse and key events.
Declaration
C#Copypublic void Attach(EvasObject target)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | target | The object to attach. |
API Level: preview
Declaration
C#Copypublic void ClearCallbacks()
API Level: preview
Declaration
C#Copyprotected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | The gesture layer's parent widget. |
Returns
Type | Description |
---|---|
System.IntPtr |
Overrides
API Level: preview
Declaration
C#Copyprotected override void OnUnrealize()
Overrides
API Level: preview
SetFlickCallback(GestureLayer.GestureState, Action<GestureLayer.LineData>)
Sets the gesture state change callback with flick gesture type.
Declaration
C#Copypublic void SetFlickCallback(GestureLayer.GestureState state, Action<GestureLayer.LineData> action)
Parameters
Type | Name | Description |
---|---|---|
GestureLayer.GestureState | state | The event the callback tracks (START, MOVE, END, ABORT). |
System.Action<GestureLayer.LineData> | action | The callback itself. |
API Level: preview
SetGestureCallback(GestureLayer.GestureType, GestureLayer.GestureState, Action<Object>)
Sets the gesture state change callback. When all callbacks for the gesture are set to null, it means this gesture is disabled.
Declaration
C#Copypublic void SetGestureCallback(GestureLayer.GestureType type, GestureLayer.GestureState state, Action<object> action)
Parameters
Type | Name | Description |
---|---|---|
GestureLayer.GestureType | type | The gesture you want to track state of. |
GestureLayer.GestureState | state | The event the callback tracks (START, MOVE, END, ABORT). |
System.Action<System.Object> | action | The callback itself. |
API Level: preview
SetLineCallback(GestureLayer.GestureState, Action<GestureLayer.LineData>)
Sets the gesture state change callback with line gesture type.
Declaration
C#Copypublic void SetLineCallback(GestureLayer.GestureState state, Action<GestureLayer.LineData> action)
Parameters
Type | Name | Description |
---|---|---|
GestureLayer.GestureState | state | The event the callback tracks (START, MOVE, END, ABORT). |
System.Action<GestureLayer.LineData> | action | The callback itself. |
API Level: preview
SetMomentumCallback(GestureLayer.GestureState, Action<GestureLayer.MomentumData>)
Sets the gesture state change callback with momentum gesture type.
Declaration
C#Copypublic void SetMomentumCallback(GestureLayer.GestureState state, Action<GestureLayer.MomentumData> action)
Parameters
Type | Name | Description |
---|---|---|
GestureLayer.GestureState | state | The event the callback tracks (START, MOVE, END, ABORT). |
System.Action<GestureLayer.MomentumData> | action | The callback itself. |
API Level: preview
SetRotateCallback(GestureLayer.GestureState, Action<GestureLayer.RotateData>)
Sets the gesture state change callback with rotate gesture type.
Declaration
C#Copypublic void SetRotateCallback(GestureLayer.GestureState state, Action<GestureLayer.RotateData> action)
Parameters
Type | Name | Description |
---|---|---|
GestureLayer.GestureState | state | The event the callback tracks (START, MOVE, END, ABORT). |
System.Action<GestureLayer.RotateData> | action | The callback itself. |
API Level: preview
SetTapCallback(GestureLayer.GestureType, GestureLayer.GestureState, Action<GestureLayer.TapData>)
Sets the tap callback.
Declaration
C#Copypublic void SetTapCallback(GestureLayer.GestureType type, GestureLayer.GestureState state, Action<GestureLayer.TapData> action)
Parameters
Type | Name | Description |
---|---|---|
GestureLayer.GestureType | type | The gesture you want to track state of. |
GestureLayer.GestureState | state | The event the callback tracks (START, MOVE, END, ABORT). |
System.Action<GestureLayer.TapData> | action | The callback itself. |
API Level: preview
SetZoomCallback(GestureLayer.GestureState, Action<GestureLayer.ZoomData>)
Sets the gesture state change callback with zoom gesture type.
Declaration
C#Copypublic void SetZoomCallback(GestureLayer.GestureState state, Action<GestureLayer.ZoomData> action)
Parameters
Type | Name | Description |
---|---|---|
GestureLayer.GestureState | state | The event the callback tracks (START, MOVE, END, ABORT). |
System.Action<GestureLayer.ZoomData> | action | The callback itself. |