FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BrowserAppBuilder

    trait · ferroui-browser · v0.5.0

    trait BrowserAppBuilder
    

    Starts an application in a web page.

    View source

    Members

    start_browser_app

    fn start_browser_app(self: &Self, main_div_id: &str, options: Option<BrowserPlatformOptions>)
    

    Configures browser backend and creates a single view lifetime from the passed main_div_id parameter.

    main_div_id is the ID of the html element where the content should be rendered. The function returns once the application is set up; the page drives it from then on.

    Source

    setup_browser_app

    fn setup_browser_app(self: &Self, options: Option<BrowserPlatformOptions>)
    

    Configures browser backend.

    This method doesn't create any views to be rendered. To do so create a FerroView object. Alternatively, you can call start_browser_app instead.

    Source

    use_browser

    fn use_browser(self: &Self) -> AppBuilder
    

    Selects the subsystems of the browser: its runtime platform and windowing subsystem, the enabled renderer and HarfBuzz for text shaping.

    Source

    Trait implementations

    Availability

    Extracted for wasm32-unknown-emscripten, aarch64-apple-darwin. Cargo features are listed in the crate index.