HSPoint
TypeThis 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
Methods
constructor(x, y) -> None
Create a new HSPoint object
Declaration
constructor(x, y) -> None
Parameters
| Name | Type | Description |
|---|---|---|
| x | number | A coordinate for this point on the x-axis |
| y | number | A coordinate for this point on the y-axis |
Returns
None