hammerspoon2-docs
    Preparing search index...

    Class HSSize

    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.

    Index

    Constructors

    Properties

    h w

    Constructors

    • Create a new HSSize object

      Parameters

      • w: number

        The width of the rectangle

      • h: number

        The height of the rectangle

      Returns HSSize

    Properties

    h: number

    The height of the rectangle

    w: number

    The width of the rectangle