Class GestureLayer
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
The GestureLayer is used to detect gestures. Inherits Widget.
public class GestureLayer : Widget, IAccessibleObject
- Inheritance
- Implements
Constructors
View SourceGestureLayer(EvasObject)
Creates and initializes a new instance of the GestureLayer class.
Declaration
public 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
View SourceContinues
Sets or gets the gesture layer to continue enable of an object.
Declaration
public bool Continues { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: preview
View SourceDoubleTapTimeout
Sets or gets the gesture layer double tap timeout of an object.
Declaration
public double DoubleTapTimeout { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceFlickTimeLimit
Sets or gets the gesture layer flick time limit (in ms) of an object.
Declaration
public int FlickTimeLimit { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: preview
View SourceHoldEvents
Sets or gets the repeat-events setting.
Declaration
public bool HoldEvents { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: preview
View SourceLineAngularTolerance
Sets or gets the gesture layer line angular tolerance of an object.
Declaration
public double LineAngularTolerance { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceLineDistanceTolerance
Sets or gets the gesture layer line distance tolerance of an object.
Declaration
public int LineDistanceTolerance { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: preview
View SourceLongTapTimeout
Sets or gets the gesture layer long tap start timeout of an object.
Declaration
public double LongTapTimeout { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceMinimumLineLength
Sets or gets the gesture layer line minimum length of an object.
Declaration
public int MinimumLineLength { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: preview
View SourceRotateAngularTolerance
Sets or gets the gesture layer rotate angular tolerance of an object.
Declaration
public double RotateAngularTolerance { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceRotateStep
Sets or gets the step-value for the rotate action.
Declaration
public double RotateStep { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceTapFingerSize
Sets or gets the gesture layer finger-size for taps.
Declaration
public int TapFingerSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: preview
View SourceZoomDistanceTolerance
Sets or gets the gesture layer zoom distance tolerance of an object.
Declaration
public int ZoomDistanceTolerance { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: preview
View SourceZoomFingerFactor
Sets or gets the gesture layer zoom finger factor of an object.
Declaration
public double ZoomFingerFactor { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceZoomStep
Sets or gets the control step value for the zoom action.
Declaration
public double ZoomStep { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceZoomWheelFactor
Sets or gets the gesture layer zoom wheel factor of an object.
Declaration
public double ZoomWheelFactor { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
Methods
View SourceAttach(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
public void Attach(EvasObject target)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | target | The object to attach. |
API Level: preview
View SourceClearCallbacks()
Clears the gesture state change callback.
Declaration
public void ClearCallbacks()
API Level: preview
View SourceCreateHandle(EvasObject)
Calls this function to construct a new gesture-layer object.
Declaration
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | The gesture layer's parent widget. |
Returns
Type | Description |
---|---|
IntPtr |
Overrides
API Level: preview
View SourceOnUnrealize()
Clears the gesture state change callback.
Declaration
protected override void OnUnrealize()
Overrides
API Level: preview
View SourceSetFlickCallback(GestureLayer.GestureState, Action<GestureLayer.LineData>)
Sets the gesture state change callback with flick gesture type.
Declaration
public 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). |
Action<GestureLayer.LineData> | action | The callback itself. |
API Level: preview
View SourceSetGestureCallback(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
public 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). |
Action<Object> | action | The callback itself. |
API Level: preview
View SourceSetLineCallback(GestureLayer.GestureState, Action<GestureLayer.LineData>)
Sets the gesture state change callback with line gesture type.
Declaration
public 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). |
Action<GestureLayer.LineData> | action | The callback itself. |
API Level: preview
View SourceSetMomentumCallback(GestureLayer.GestureState, Action<GestureLayer.MomentumData>)
Sets the gesture state change callback with momentum gesture type.
Declaration
public 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). |
Action<GestureLayer.MomentumData> | action | The callback itself. |
API Level: preview
View SourceSetRotateCallback(GestureLayer.GestureState, Action<GestureLayer.RotateData>)
Sets the gesture state change callback with rotate gesture type.
Declaration
public 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). |
Action<GestureLayer.RotateData> | action | The callback itself. |
API Level: preview
View SourceSetTapCallback(GestureLayer.GestureType, GestureLayer.GestureState, Action<GestureLayer.TapData>)
Sets the tap callback.
Declaration
public 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). |
Action<GestureLayer.TapData> | action | The callback itself. |
API Level: preview
View SourceSetZoomCallback(GestureLayer.GestureState, Action<GestureLayer.ZoomData>)
Sets the gesture state change callback with zoom gesture type.
Declaration
public 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). |
Action<GestureLayer.ZoomData> | action | The callback itself. |