hammerspoon2-docs
    Preparing search index...

    Function window

    • Create a custom UI window

      Creates a borderless window that can contain custom UI elements built using a declarative, SwiftUI-like syntax with shapes, text, and layout containers.

      The window is placed in the same screen coordinates as hs.screen and hs.window: y = 0 is the top of the primary screen, and y increases downward. Like hs.window's frame, the rect is the whole window, including its title bar if it has one.

      Parameters

      • rect: HSRect | { h: number; w: number; x: number; y: number }

        The window's frame: an HSRect (e.g. a screen's frame) or a dictionary with keys x, y, w, h (all numbers)

      Returns HSUIWindow

      An HSUIWindow object for chaining