HSSize
TypeThis 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
Methods
constructor(w, h) -> None
Create a new HSSize object
Declaration
constructor(w, h) -> None
Parameters
| Name | Type | Description |
|---|---|---|
| w | number | The width of the rectangle |
| h | number | The height of the rectangle |
Returns
None