foo-webview-sdk
    Preparing search index...

    Interface WindowDpiChangedPayload

    Payload of the window:dpiChanged event. The main window's DPI changed, because it moved to another display or the display's scaling changed. Only the main window's page gets it. Sizes are physical pixels at the new DPI; the host also updates the page's titlebar CSS variables.

    interface WindowDpiChangedPayload {
        captionButtonsWidth: number;
        captionButtonWidth: number;
        dpi: number;
        dpiScale: number;
        titlebarHeight: number;
    }
    Index
    captionButtonsWidth: number

    Width of the three caption buttons together, captionButtonWidth * 3.

    captionButtonWidth: number

    Width of one caption button.

    dpi: number

    The new DPI; 96 is 100 % scaling.

    dpiScale: number

    dpi / 96.

    titlebarHeight: number

    Height of the titlebar.