Tauri Core API - v2.6.0
    Preparing search index...

    Namespace window

    Provides APIs to create windows, communicate with other windows and manipulate the current window.

    Events can be listened to using Window.listen:

    import { getCurrentWindow } from "@tauri-apps/api/window";
    getCurrentWindow().listen("my-window-event", ({ event, payload }) => { });

    Enumerations

    UserAttentionType
    ProgressBarStatus
    BackgroundThrottlingPolicy
    Effect
    EffectState

    Classes

    CloseRequestedEvent
    Window

    Interfaces

    Monitor
    ScaleFactorChanged
    WindowSizeConstraints
    ProgressBarState
    Effects
    WindowOptions

    Type Aliases

    Theme
    TitleBarStyle
    CursorIcon

    Functions

    getCurrentWindow
    getAllWindows
    currentMonitor
    primaryMonitor
    monitorFromPoint
    availableMonitors
    cursorPosition

    References

    LogicalSize → dpi.LogicalSize
    PhysicalSize → dpi.PhysicalSize
    LogicalPosition → dpi.LogicalPosition
    PhysicalPosition → dpi.PhysicalPosition
    Color → webview.Color
    DragDropEvent → webview.DragDropEvent