Class GestureLayer

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll

    The GestureLayer is used to detect gestures. Inherits Widget.

    [Obsolete("This has been deprecated in API12")]
    public class GestureLayer : Widget, IAccessibleObject
    Inheritance
    object
    EvasObject
    AccessibleObject
    Widget
    GestureLayer
    Implements
    IAccessibleObject

    Constructors

    View Source

    GestureLayer(EvasObject)

    Creates and initializes a new instance of the GestureLayer class.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    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.

    Properties

    View Source

    Continues

    Sets or gets the gesture layer to continue enable of an object.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public bool Continues { get; set; }
    Property Value
    Type Description
    bool
    View Source

    DoubleTapTimeout

    Sets or gets the gesture layer double tap timeout of an object.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public double DoubleTapTimeout { get; set; }
    Property Value
    Type Description
    double
    View Source

    FlickTimeLimit

    Sets or gets the gesture layer flick time limit (in ms) of an object.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public int FlickTimeLimit { get; set; }
    Property Value
    Type Description
    int
    View Source

    HoldEvents

    Sets or gets the repeat-events setting.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public bool HoldEvents { get; set; }
    Property Value
    Type Description
    bool
    View Source

    LineAngularTolerance

    Sets or gets the gesture layer line angular tolerance of an object.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public double LineAngularTolerance { get; set; }
    Property Value
    Type Description
    double
    View Source

    LineDistanceTolerance

    Sets or gets the gesture layer line distance tolerance of an object.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public int LineDistanceTolerance { get; set; }
    Property Value
    Type Description
    int
    View Source

    LongTapTimeout

    Sets or gets the gesture layer long tap start timeout of an object.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public double LongTapTimeout { get; set; }
    Property Value
    Type Description
    double
    View Source

    MinimumLineLength

    Sets or gets the gesture layer line minimum length of an object.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public int MinimumLineLength { get; set; }
    Property Value
    Type Description
    int
    View Source

    RotateAngularTolerance

    Sets or gets the gesture layer rotate angular tolerance of an object.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public double RotateAngularTolerance { get; set; }
    Property Value
    Type Description
    double
    View Source

    RotateStep

    Sets or gets the step-value for the rotate action.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public double RotateStep { get; set; }
    Property Value
    Type Description
    double
    View Source

    TapFingerSize

    Sets or gets the gesture layer finger-size for taps.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public int TapFingerSize { get; set; }
    Property Value
    Type Description
    int
    View Source

    ZoomDistanceTolerance

    Sets or gets the gesture layer zoom distance tolerance of an object.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public int ZoomDistanceTolerance { get; set; }
    Property Value
    Type Description
    int
    View Source

    ZoomFingerFactor

    Sets or gets the gesture layer zoom finger factor of an object.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public double ZoomFingerFactor { get; set; }
    Property Value
    Type Description
    double
    View Source

    ZoomStep

    Sets or gets the control step value for the zoom action.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public double ZoomStep { get; set; }
    Property Value
    Type Description
    double
    View Source

    ZoomWheelFactor

    Sets or gets the gesture layer zoom wheel factor of an object.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public double ZoomWheelFactor { get; set; }
    Property Value
    Type Description
    double

    Methods

    View Source

    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
    [Obsolete("This has been deprecated in API12")]
    public void Attach(EvasObject target)
    Parameters
    Type Name Description
    EvasObject target

    The object to attach.

    View Source

    ClearCallbacks()

    Clears the gesture state change callback.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public void ClearCallbacks()
    View Source

    CreateHandle(EvasObject)

    Calls this function to construct a new gesture-layer object.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    protected override IntPtr CreateHandle(EvasObject parent)
    Parameters
    Type Name Description
    EvasObject parent

    The gesture layer's parent widget.

    Returns
    Type Description
    System.IntPtr
    Overrides
    EvasObject.CreateHandle(EvasObject)
    View Source

    OnUnrealize()

    Clears the gesture state change callback.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    protected override void OnUnrealize()
    Overrides
    EvasObject.OnUnrealize()
    View Source

    SetFlickCallback(GestureState, Action<LineData>)

    Sets the gesture state change callback with flick gesture type.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    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).

    System.Action<T><GestureLayer.LineData> action

    The callback itself.

    View Source

    SetGestureCallback(GestureType, 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
    [Obsolete("This has been deprecated in API12")]
    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).

    System.Action<T><object> action

    The callback itself.

    View Source

    SetLineCallback(GestureState, Action<LineData>)

    Sets the gesture state change callback with line gesture type.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    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).

    System.Action<T><GestureLayer.LineData> action

    The callback itself.

    View Source

    SetMomentumCallback(GestureState, Action<MomentumData>)

    Sets the gesture state change callback with momentum gesture type.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    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).

    System.Action<T><GestureLayer.MomentumData> action

    The callback itself.

    View Source

    SetRotateCallback(GestureState, Action<RotateData>)

    Sets the gesture state change callback with rotate gesture type.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    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).

    System.Action<T><GestureLayer.RotateData> action

    The callback itself.

    View Source

    SetTapCallback(GestureType, GestureState, Action<TapData>)

    Sets the tap callback.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    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).

    System.Action<T><GestureLayer.TapData> action

    The callback itself.

    View Source

    SetZoomCallback(GestureState, Action<ZoomData>)

    Sets the gesture state change callback with zoom gesture type.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    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).

    System.Action<T><GestureLayer.ZoomData> action

    The callback itself.

    Implements

    IAccessibleObject

    Extension Methods

    RotaryEventExtensions.Activate(EvasObject)
    RotaryEventExtensions.AddRotaryEventHandler(EvasObject, RotaryEventHandler)
    RotaryEventExtensions.Deactivate(EvasObject)
    RotaryEventExtensions.RemoveRotaryEventHandler(EvasObject, RotaryEventHandler)
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX