Struct wry::WindowProxy [−][src]
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
impl !RefUnwindSafe for WindowProxy
[src]
impl Send for WindowProxy
[src]
impl !Sync for WindowProxy
[src]
impl Unpin for WindowProxy
[src]
impl !UnwindSafe for WindowProxy
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,