API Docs

This is a JavaScript object used to represent the size of a rectangle, as used in various places throughout Hammerspoon's API, particularly where dealing with portions of a display. Behind the scenes it is a wrapper for the CGSize type in Swift/ObjectiveC.

Properties

w

number
The width of the rectangle

h

number
The height of the rectangle

Methods

constructor(w, h) -> None

Create a new HSSize object
constructor(w, h) -> None
Name Type Description
w number The width of the rectangle
h number The height of the rectangle
None