docs.unity3d.com
    Show / Hide Table of Contents

    Struct PanGesture

    A pan gesture received from a magic trackpad.

    Inherited Members
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.AppUI.Core
    Syntax
    public struct PanGesture : IEquatable<PanGesture>

    Constructors

    PanGesture(Vector2, Vector2, TouchPhase)

    Constructor.

    Declaration
    public PanGesture(Vector2 position, Vector2 deltaPos, TouchPhase phase)
    Parameters
    Type Name Description
    Vector2 position

    The position of the touch in normalized coordinates.

    Vector2 deltaPos

    The delta position of the touch since the last frame.

    TouchPhase phase

    The phase of the gesture.

    Properties

    deltaPos

    The delta position of the touch since the last frame.

    Declaration
    public readonly Vector2 deltaPos { get; }
    Property Value
    Type Description
    Vector2

    phase

    The phase of the gesture.

    Declaration
    public readonly TouchPhase phase { get; }
    Property Value
    Type Description
    TouchPhase

    position

    The position of the touch in normalized coordinates.

    Declaration
    public readonly Vector2 position { get; }
    Property Value
    Type Description
    Vector2

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(PanGesture)

    Declaration
    public bool Equals(PanGesture other)
    Parameters
    Type Name Description
    PanGesture other
    Returns
    Type Description
    Boolean
    Implements
    IEquatable<T>.Equals(T)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    Operators

    Equality(PanGesture, PanGesture)

    Declaration
    public static bool operator ==(PanGesture left, PanGesture right)
    Parameters
    Type Name Description
    PanGesture left
    PanGesture right
    Returns
    Type Description
    Boolean

    Inequality(PanGesture, PanGesture)

    Declaration
    public static bool operator !=(PanGesture left, PanGesture right)
    Parameters
    Type Name Description
    PanGesture left
    PanGesture right
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023