@wailsio/runtime
    Preparing search index...

    Class Window

    Index

    Methods

    • Gets the specified window.

      Parameters

      • name: string

        The name of the window to get.

      Returns Window

      The corresponding window object.

    • Handles file drops originating from platform-specific code (e.g., macOS/Linux native drag-and-drop). Gathers information about the drop target element and sends it back to the Go backend.

      Parameters

      • filenames: string[]

        An array of file paths (strings) that were dropped.

      • x: number

        The x-coordinate of the drop event, in logical (CSS) pixels relative to the webview.

      • y: number

        The y-coordinate of the drop event, in logical (CSS) pixels relative to the webview.

      Returns void

    • Returns true if the window is focused.

      Returns Promise<boolean>

      Whether the window is currently focused.

    • Returns true if the window is fullscreen.

      Returns Promise<boolean>

      Whether the window is currently fullscreen.

    • Returns true if the window is maximised.

      Returns Promise<boolean>

      Whether the window is currently maximised.

    • Returns true if the window is minimised.

      Returns Promise<boolean>

      Whether the window is currently minimised.

    • Returns true if the window is resizable.

      Returns Promise<boolean>

      Whether the window is currently resizable.

    • Restores the window to its previous state if it was previously minimised, maximised or fullscreen.

      Returns Promise<void>

    • Sets the window to be always on top.

      Parameters

      • alwaysOnTop: boolean

        Whether the window should stay on top.

      Returns Promise<void>

    • Sets the background colour of the window.

      Parameters

      • r: number

        The desired red component of the window background.

      • g: number

        The desired green component of the window background.

      • b: number

        The desired blue component of the window background.

      • a: number

        The desired alpha component of the window background.

      Returns Promise<void>

    • Removes the window frame and title bar.

      Parameters

      • frameless: boolean

        Whether the window should be frameless.

      Returns Promise<void>

    • Disables the system fullscreen button.

      Parameters

      • enabled: boolean

        Whether the fullscreen button should be enabled.

      Returns Promise<void>

    • Sets the maximum size of the window.

      Parameters

      • width: number

        The desired maximum width of the window.

      • height: number

        The desired maximum height of the window.

      Returns Promise<void>

    • Sets the minimum size of the window.

      Parameters

      • width: number

        The desired minimum width of the window.

      • height: number

        The desired minimum height of the window.

      Returns Promise<void>

    • Sets the absolute position of the window.

      Parameters

      • x: number

        The desired horizontal absolute position of the window.

      • y: number

        The desired vertical absolute position of the window.

      Returns Promise<void>

    • Sets the relative position of the window to the screen.

      Parameters

      • x: number

        The desired horizontal relative position of the window.

      • y: number

        The desired vertical relative position of the window.

      Returns Promise<void>

    • Sets whether the window is resizable.

      Parameters

      • resizable: boolean

        Whether the window should be resizable.

      Returns Promise<void>

    • Moves the window to the center of the specified screen's work area.

      Parameters

      • screenID: string

        The ID of the target screen.

      Returns Promise<void>

    • Sets the size of the window.

      Parameters

      • width: number

        The desired width of the window.

      • height: number

        The desired height of the window.

      Returns Promise<void>

    • Sets the title of the window.

      Parameters

      • title: string

        The desired title of the window.

      Returns Promise<void>

    • Sets the zoom level of the window.

      Parameters

      • zoom: number

        The desired zoom level.

      Returns Promise<void>