Struct wry::Attributes [−][src]
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]
fn clone(&self) -> Attributes
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Attributes
[src]
impl Default for Attributes
[src]
Auto Trait Implementations
impl RefUnwindSafe for Attributes
[src]
impl Send for Attributes
[src]
impl Sync for Attributes
[src]
impl Unpin for Attributes
[src]
impl UnwindSafe for Attributes
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,