Struct dioxus_desktop::Config

source ·
pub struct Config { /* private fields */ }
Expand description

The configuration for the desktop application.

Implementations§

Initializes a new WindowBuilder with default values.

set the directory from which assets will be searched in release mode

Set whether or not the right-click context menu should be disabled.

Set the pre-rendered HTML content

Set the configuration for the window.

Set a file drop handler

Set a custom protocol

Set a custom icon for this application

Inject additional content into the document’s HEAD.

This is useful for loading CSS libraries, JS libraries, etc.

Use a custom index.html instead of the default Dioxus one.

Make sure your index.html is valid HTML.

Dioxus injects some loader code into the closing body tag. Your document must include a body element!

Set the name of the element that Dioxus will use as the root.

This is akint to calling React.render() on the element with the specified name.

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts to T by calling Into<T>::into.
Tries to convert to T by calling TryInto<T>::try_into.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.