Class PinchGesture

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    A PinchGesture is emitted when the user moves two fingers towards or away from each other.
    A pinch gesture will continue to be sent to the actor under the center point of the pinch until the pinch ends.

    public class PinchGesture : Gesture, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Gesture
    PinchGesture
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Constructors

    View Source

    PinchGesture(StateType)

    The default constructor.

    Declaration
    public PinchGesture(Gesture.StateType state)
    Parameters
    Type Name Description
    Gesture.StateType state

    The state of the gesture.

    Properties

    View Source

    LocalCenterPoint

    The center point of the two points that caused the pinch gesture in local actor coordinates.

    Declaration
    public Vector2 LocalCenterPoint { get; }
    Property Value
    Type Description
    Vector2
    View Source

    Scale

    The scale factor from the start of the pinch gesture till the latest pinch gesture.
    If the user is moving their fingers away from each other, then this value increases. Conversely, if the user is moving their fingers towards each other, this value will decrease.

    Declaration
    public float Scale { get; }
    Property Value
    Type Description
    float
    View Source

    ScreenCenterPoint

    The center point of the two points that caused the pinch gesture in screen coordinates.

    Declaration
    public Vector2 ScreenCenterPoint { get; }
    Property Value
    Type Description
    Vector2
    View Source

    Speed

    The speed at which the user is moving their fingers.
    This is the pixel movement per second.

    Declaration
    public float Speed { get; }
    Property Value
    Type Description
    float

    Methods

    View Source

    ReleaseSwigCPtr(HandleRef)

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Overrides
    Gesture.ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX