foo-webview-sdk
    Preparing search index...

    Interface WindowSetMaximizeButtonRegionParams

    Parameters for window.setMaximizeButtonRegion. Register the custom maximize button rectangle on the main window to enable Windows 11 Snap layouts. The rectangle uses page CSS pixels and scales with devicePixelRatio. It replaces any previous rectangle; omitting region or passing non-positive dimensions clears the registration. When the window is frameless, resizable, and not fullscreen, the host reports this area as the system maximize button while forwarding mouse events to the page (preserving CSS hover styles and click handlers). On Windows 10 or in other states, the area behaves as normal page content. Re-register whenever button layout moves or devicePixelRatio changes. Page reload or navigation clears this registration. Main window only: fails with NOT_SUPPORTED from popups, in panel mode, or with NOT_FOUND without a window.

    interface WindowSetMaximizeButtonRegionParams {
        region?: WindowRegion;
    }
    Index
    region?: WindowRegion

    Custom maximize button bounding box in CSS pixels; omitted or zero-sized to clear.