HSPoint
Type
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
Hammerspoon 2/Engine/Types/HSPoint.swift:28
Parameters
-
xnumberA coordinate for this point on the x-axis
-
ynumberA coordinate for this point on the y-axis
Returns
Nothing