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)

Create a new HSSize object

Parameters

  • w number

    The width of the rectangle

  • h number

    The height of the rectangle

Returns

Nothing