Struct wry::WindowProxy[][src]

pub struct WindowProxy { /* fields omitted */ }

A proxy to customize its corresponding WebView window.

Whenever Application::add_window creates a WebView Window, it will return this for you. But it can still be retrieved from Application::window_proxy in case you drop the window proxy too early.

Implementations

impl WindowProxy[src]

pub fn id(&self) -> WindowId[src]

Gets the id of the WebView window.

pub fn set_resizable(&self, resizable: bool) -> Result<()>[src]

pub fn set_title<S: Into<String>>(&self, title: S) -> Result<()>[src]

pub fn maximize(&self) -> Result<()>[src]

pub fn unmaximize(&self) -> Result<()>[src]

pub fn minimize(&self) -> Result<()>[src]

pub fn unminimize(&self) -> Result<()>[src]

pub fn show(&self) -> Result<()>[src]

pub fn hide(&self) -> Result<()>[src]

pub fn set_transparent(&self, resizable: bool) -> Result<()>[src]

pub fn set_decorations(&self, decorations: bool) -> Result<()>[src]

pub fn set_always_on_top(&self, always_on_top: bool) -> Result<()>[src]

pub fn set_width(&self, width: f64) -> Result<()>[src]

pub fn set_height(&self, height: f64) -> Result<()>[src]

pub fn resize(&self, width: f64, height: f64) -> Result<()>[src]

pub fn set_min_size(&self, min_width: f64, min_height: f64) -> Result<()>[src]

pub fn set_max_size(&self, max_width: f64, max_height: f64) -> Result<()>[src]

pub fn set_x(&self, x: f64) -> Result<()>[src]

pub fn set_y(&self, y: f64) -> Result<()>[src]

pub fn set_position(&self, x: f64, y: f64) -> Result<()>[src]

pub fn set_fullscreen(&self, fullscreen: bool) -> Result<()>[src]

pub fn set_icon(&self, icon: Icon) -> Result<()>[src]

pub fn evaluate_script<S: Into<String>>(&self, script: S) -> Result<()>[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, 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.