Crate browser_window[][src]

Expand description

Browser Window is a Rust crate that allows you to utilize a browser engine to build graphical interfaces. The idea is similar to Electron.js. You create the interface with HTML, CSS and JavaScript. Then, you can communicate information from JavaScript back to Rust, and from the other way around.

The only supported browser engine right now is Chromium’s Blink. Therefore, the Chromium Embedding Framework (CEF) is used as a dependency. To get CEF set up properly, take a look here. Moreover, because getting CEF to work properly is not always straightforward, here is a list of common issues you may run in to, and their solutions.

Getting Started

To start building apps with Browser Window, take a quick look at the application module.

For a rich example, see this example code.

Modules

This module contains runtime and application related handles.

This module contains all browser related handles and stuff.

This module contains all event related types.

Some common traits that need to be often available.

This module contains all window related functionality.

Structs

This future executes a closure on the GUI thread and returns the result.

This future runs a future on the GUI thread and returns its output.

Enums

The error that occurs when you’re delegating work to the GUI thread, but it fails to finish and/or return a result.

Traits

A property is something that has a setter and a getter.