Create a new HSRect object
The x-axis coordinate of the top-left corner
The y-axis coordinate of the top-left corner
The width of the rectangle
The height of the rectangle
The height of the rectangle
The "origin" of the rectangle, ie the coordinates of its top left corner, as an HSPoint object
The size of the rectangle, ie its width and height, as an HSSize object
The width of the rectangle
An x-axis coordinate for the top-left point of the rectangle
A y-axis coordinate for the top-left point of the rectangle
This is a JavaScript object used to represent 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 CGRect type in Swift/ObjectiveC.