Struct wry::Attributes[][src]

pub struct Attributes {
    pub resizable: bool,
    pub title: String,
    pub maximized: bool,
    pub visible: bool,
    pub transparent: bool,
    pub decorations: bool,
    pub always_on_top: bool,
    pub width: f64,
    pub height: f64,
    pub min_width: Option<f64>,
    pub min_height: Option<f64>,
    pub max_width: Option<f64>,
    pub max_height: Option<f64>,
    pub x: Option<f64>,
    pub y: Option<f64>,
    pub fullscreen: bool,
    pub icon: Option<Icon>,
    pub skip_taskbar: bool,
    pub url: Option<String>,
    pub initialization_scripts: Vec<String>,
}

Attributes to use when creating a webview window.

Fields

resizable: bool

Whether the window is resizable or not.

The default is true.

title: String

The title of the window in the title bar.

The default is "wry".

maximized: bool

Whether the window should be maximized upon creation.

The default is false.

visible: bool

Whether the window should be immediately visible upon creation.

The default is true.

transparent: bool

Whether the the window should be transparent. If this is true, writing colors with alpha values different than 1.0 will produce a transparent window.

The default is false.

decorations: bool

Whether the window should have borders and bars.

The default is true.

always_on_top: bool

Whether the window should always be on top of other windows.

The default is false.

width: f64

The width of the window.

The default is 800.0.

height: f64

The height of the window.

The default is 600.0.

min_width: Option<f64>

The minimum width of the window.

The default is None.

min_height: Option<f64>

The minimum height of the window.

The default is None.

max_width: Option<f64>

The maximum width of the window.

The default is None.

max_height: Option<f64>

The maximum height of the window.

The default is None.

x: Option<f64>

The horizontal position of the window's top left corner.

The default is None.

y: Option<f64>

The vertical position of the window's top left corner.

The default is None.

fullscreen: bool

Whether to start the window in fullscreen or not.

The default is false.

icon: Option<Icon>

The window icon.

The default is None.

skip_taskbar: bool

Whether to hide the window icon in the taskbar/dock.

The default is false

url: Option<String>

The URL to be loaded in the webview window.

The default is None.

initialization_scripts: Vec<String>

Javascript Code to be initialized when loading new pages.

The default is an empty vector.

Trait Implementations

impl Clone for Attributes[src]

impl Debug for Attributes[src]

impl Default for Attributes[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.