Search Results for

    Show / Hide Table of Contents

    Class PointerTools

    Pointer tools

    Inheritance
    object
    PointerTools
    Namespace: Terminaux.Inputs.Pointer
    Assembly: Terminaux.dll
    Syntax
    public static class PointerTools

    Methods

    | Edit this page View Source

    PointerWithinPoint(PointerEventContext, (int x, int y))

    Checks to see if the returned pointer event context is in the range of the two dimensions (if the mouse pointer is within the boundaries)

    Declaration
    public static bool PointerWithinPoint(PointerEventContext context, (int x, int y) point)
    Parameters
    Type Name Description
    PointerEventContext context

    Pointer event context (You can easily obtain it using the ReadPointerOrKey(InputEventType) function)

    (int Width, int Height) point

    Point position

    Returns
    Type Description
    bool

    True if the pointer is within the specified point position; false otherwise

    | Edit this page View Source

    PointerWithinPoint(PointerEventContext, Coordinate)

    Checks to see if the returned pointer event context is in the range of the two dimensions (if the mouse pointer is within the boundaries)

    Declaration
    public static bool PointerWithinPoint(PointerEventContext context, Coordinate point)
    Parameters
    Type Name Description
    PointerEventContext context

    Pointer event context (You can easily obtain it using the ReadPointerOrKey(InputEventType) function)

    Coordinate point

    Point position

    Returns
    Type Description
    bool

    True if the pointer is within the specified point position; false otherwise

    | Edit this page View Source

    PointerWithinRange(PointerEventContext, (int x, int y), (int x, int y))

    Checks to see if the returned pointer event context is in the range of the two dimensions (if the mouse pointer is within the boundaries)

    Declaration
    public static bool PointerWithinRange(PointerEventContext context, (int x, int y) start, (int x, int y) end)
    Parameters
    Type Name Description
    PointerEventContext context

    Pointer event context (You can easily obtain it using the ReadPointerOrKey(InputEventType) function)

    (int Width, int Height) start

    Starting position representing an upper left corner of the rectangle

    (int Width, int Height) end

    Ending position representing a lower right corner of the rectangle

    Returns
    Type Description
    bool

    True if the pointer is within the range; false otherwise

    | Edit this page View Source

    PointerWithinRange(PointerEventContext, Coordinate, Coordinate)

    Checks to see if the returned pointer event context is in the range of the two dimensions (if the mouse pointer is within the boundaries)

    Declaration
    public static bool PointerWithinRange(PointerEventContext context, Coordinate start, Coordinate end)
    Parameters
    Type Name Description
    PointerEventContext context

    Pointer event context (You can easily obtain it using the ReadPointerOrKey(InputEventType) function)

    Coordinate start

    Starting position representing an upper left corner of the rectangle

    Coordinate end

    Ending position representing a lower right corner of the rectangle

    Returns
    Type Description
    bool

    True if the pointer is within the range; false otherwise

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX