Menu

API reference

App and runtime

Configures an application, starts the runtime and reaches it once it runs.

Structs

App

Public application builder.

AppHandle

Shared lifecycle handle for a running Kurogane application.

AppInstance

The running application, owned by the thread that started it.

BrowserBounds

A browser’s place inside its parent window, for AppInstance::create_child_browser and BrowserHandle::set_bounds. It is a position and a size in that window’s own coordinates, which CEF applies unconverted. Pixels from the top-left of the client area on Windows and X11; on macOS, points in the parent NSView, whose origin is its top-left corner when the view is flipped (winit’s is) and its bottom-left corner otherwise.

BrowserHandle

A browser of the running application.

SecondInstance

A launch of the application while another instance is already running.

Enums

CefLocation

Where the application found its Chromium runtime, in the order it looks.

ConfigError

One problem in the App builder configuration, reported by build() / run() / start_embedded() as RuntimeError::InvalidConfiguration.

CredentialStorage

Backend used to protect cookies and saved passwords at rest.

GpuMode

GPU backend selection strategy.

PumpRequest

A request from CEF indicating when it next needs to be serviced.

RuntimeError

Failure to start the application or to open a window or a browser.

SandboxMode

Chromium process sandbox policy.

Traits

ClientAppBrowserDelegate

Customizes browser-process startup behavior.

ClientAppRendererDelegate

Customizes render-process behavior.

SchemeHandler

Generates a ResourceHandler for requests on a custom scheme.

Functions

is_browser_process

Returns whether this process is Chromium’s browser process rather than one of its helper processes (renderer, GPU, utility) which run this same binary again with a --type= argument.

resource_dir

The directory a packaged application’s bundled resources live in.

resource_handler_from_bytes

Builds a ResourceHandler serving data once with the given MIME type and status code.

Macros

sandbox_entry

Declares the entry points CEF’s sandbox bootstrap calls.