Menu

API reference

Windows and browsers

Opens windows, places them and names the browsers inside them.

Structs

BrowserId

Identifier of a browser, never reused while the application runs.

BrowserMetadata

What the runtime knows about an open browser, from AppHandle::browsers.

FullscreenChange

A page entering or leaving fullscreen, passed to App::on_fullscreen_change.

TitleChange

A page’s new title, passed to App::on_title_change.

WindowClosing

A window of the application’s closing, passed to App::on_window_closing. It says which window it is and where it was, to open it there again with WindowOptions::placement.

WindowId

Identifier of a window, never reused while the application runs.

WindowMetadata

What the runtime knows about an open window, from AppHandle::windows.

WindowOptions

How an application window opens. It holds the name the application knows it by, its title, size and place, the size it cannot be made smaller than and its state.

WindowPlacement

Where a window’s content is on the screen in density-independent pixels and how the window shows. A window maximized, minimized or fullscreen is placed where it restores to.

Enums

BrowserType

Kind of a browser.

WindowState

How a window shows when it opens (as its options say) and as it closes.