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.

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

Methods

constructor(x, y)

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

Nothing