hammerspoon2-docs
    Preparing search index...

    Class HSPoint

    This is a JavaScript object used to represent coordinates, or "points", as used in various places throughout Hammerspoon's API, particularly where dealing with positions on a screen. Behind the scenes it is a wrapper for the CGPoint type in Swift/ObjectiveC.

    Index

    Constructors

    Properties

    x y

    Constructors

    • Create a new HSPoint object

      Parameters

      • x: number

        A coordinate for this point on the x-axis

      • y: number

        A coordinate for this point on the y-axis

      Returns HSPoint

    Properties

    x: number

    A coordinate for the x-axis position of this point

    y: number

    A coordinate for the y-axis position of this point