Class Hover

    Definition

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

    Hover events are a collection of points at a specific moment in time.
    When a multi-event occurs, each point represents the points that are currently being hovered or the points where a hover has stopped.

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

    Constructors

    View Source

    Hover()

    The default constructor of Hover class.

    Declaration
    public Hover()

    Properties

    View Source

    Time

    The time (in ms) that the hover event occurred.

    Declaration
    public uint Time { get; }
    Property Value
    Type Description
    uint

    Methods

    View Source

    GetDeviceClass(uint)

    Gets the device class type from which the mouse/Hover event is originated.

    Declaration
    public DeviceClassType GetDeviceClass(uint point)
    Parameters
    Type Name Description
    uint point

    The index of a Hover point.

    Returns
    Type Description
    DeviceClassType
    View Source

    GetDeviceId(uint)

    Returns the ID of the device used for the point specified.
    Each point has a unique device ID which specifies the device used for that point. This is returned by this method.
    If a point is greater than GetPointCount(), then this method will return -1.

    Declaration
    public int GetDeviceId(uint point)
    Parameters
    Type Name Description
    uint point

    The point required.

    Returns
    Type Description
    int

    The device ID of this point.

    View Source

    GetDeviceName(uint)

    Gets the device name from which the mouse/Hover event is originated.

    Declaration
    public string GetDeviceName(uint point)
    Parameters
    Type Name Description
    uint point

    The index of a Hover point.

    Returns
    Type Description
    string

    Device name

    View Source

    GetDeviceSubClass(uint)

    Gets the subclass type of the device from which the mouse/Hover event is originated.

    Declaration
    public DeviceSubClassType GetDeviceSubClass(uint point)
    Parameters
    Type Name Description
    uint point

    The index of a Hover point.

    Returns
    Type Description
    DeviceSubClassType
    View Source

    GetHitView(uint)

    Retrieves the view that was underneath the point specified.
    If a point is greater than GetPointCount(), then this method will return an empty handle.

    Declaration
    public View GetHitView(uint point)
    Parameters
    Type Name Description
    uint point

    The point required.

    Returns
    Type Description
    View

    The view that was underneath the point specified.

    View Source

    GetLocalPosition(uint)

    Retrieves the coordinates relative to the top-left of the hit-view at the point specified.

    Declaration
    public Vector2 GetLocalPosition(uint point)
    Parameters
    Type Name Description
    uint point

    The point required.

    Returns
    Type Description
    Vector2

    The coordinates relative to the top-left of the hit-view of the point specified.

    View Source

    GetPointCount()

    Returns the total number of points.

    Declaration
    public uint GetPointCount()
    Returns
    Type Description
    uint

    Total number of points.

    View Source

    GetScreenPosition(uint)

    Retrieves the coordinates relative to the top-left of the screen of the point specified.

    Declaration
    public Vector2 GetScreenPosition(uint point)
    Parameters
    Type Name Description
    uint point

    The point required.

    Returns
    Type Description
    Vector2

    The coordinates relative to the top-left of the screen of the point specified.

    View Source

    GetState(uint)

    Retrieves the state of the point specified.
    If a point is greater than GetPointCount(), then this method will return PointState.Finished.

    Declaration
    public PointStateType GetState(uint point)
    Parameters
    Type Name Description
    uint point

    The point required.

    Returns
    Type Description
    PointStateType

    The state of the point specified.

    View Source

    ReleaseSwigCPtr(HandleRef)

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Overrides
    BaseHandle.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