Crate browser_window

source ·
Expand description

BrowserWindow is a Rust crate that allows you to utilize a browser engine to build graphical interfaces, similar to Electron.js. You create your user interface with HTML, CSS and JavaScript. Then, you can communicate information to JavaScript and back to Rust.

Pick the underlying browser framework by setting feature cef, webkitgtk or edge2. For more info on which on you should choose and how to set them up, check this guide.

§Getting Started

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

For more detailed example code, see this example code.

§Thread safety

To use the threadsafe version of Browser Window, enable feature threadsafe.

Modules§

  • This module contains runtime and application related handles.
  • This module contains all browser related handles and stuff.
  • Module for dealing with cookies.
  • Error types.
  • 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.