Skip to main content

BrowserWindowOptions

Struct BrowserWindowOptions 

Source
pub struct BrowserWindowOptions { /* private fields */ }

Implementations§

Source§

impl BrowserWindowOptions

Source

pub fn new_with_values( accept_first_mouse: Option<bool>, always_on_top: Option<bool>, auto_hide_menu_bar: Option<bool>, background_color: Option<JsString>, center: Option<bool>, closable: Option<bool>, dark_theme: Option<bool>, disable_auto_hide_cursor: Option<bool>, enable_larger_than_screen: Option<bool>, focusable: Option<bool>, frame: Option<bool>, fullscreen_window_title: Option<bool>, fullscreen: Option<bool>, fullscreenable: Option<bool>, has_shadow: Option<bool>, height: Option<usize>, icon: Option<NativeImage>, kind: Option<JsString>, kiosk: Option<bool>, max_height: Option<usize>, max_width: Option<usize>, maximizable: Option<bool>, min_height: Option<usize>, min_width: Option<usize>, minimizable: Option<bool>, modal: Option<bool>, movable: Option<bool>, opacity: Option<f32>, paint_when_initially_hidden: Option<bool>, parent: Option<BrowserWindow>, resizable: Option<bool>, show: Option<bool>, simple_fullscreen: Option<bool>, skip_taskbar: Option<bool>, tabbing_identifier: Option<JsString>, thick_frame: Option<bool>, title_bar_style: Option<JsString>, title: Option<JsString>, transparent: Option<bool>, use_content_size: Option<bool>, vibrancy: Option<JsString>, web_preferences: Option<WebPreferences>, width: Option<usize>, x: Option<usize>, y: Option<usize>, zoom_to_page_width: Option<bool>, ) -> BrowserWindowOptions

Source

pub fn new() -> BrowserWindowOptions

Source

pub fn accept_first_mouse(&self) -> Option<bool>

Source

pub fn set_accept_first_mouse(&mut self, value: Option<bool>)

Source

pub fn always_on_top(&self) -> Option<bool>

Source

pub fn set_always_on_top(&mut self, value: Option<bool>)

Source

pub fn auto_hide_menu_bar(&self) -> Option<bool>

Source

pub fn set_auto_hide_menu_bar(&mut self, value: Option<bool>)

Source

pub fn background_color(&self) -> Option<JsString>

Source

pub fn set_background_color(&mut self, value: Option<JsString>)

Source

pub fn center(&self) -> Option<bool>

Source

pub fn set_center(&mut self, value: Option<bool>)

Source

pub fn closable(&self) -> Option<bool>

Source

pub fn set_closable(&mut self, value: Option<bool>)

Source

pub fn dark_theme(&self) -> Option<bool>

Source

pub fn set_dark_theme(&mut self, value: Option<bool>)

Source

pub fn disable_auto_hide_cursor(&self) -> Option<bool>

Source

pub fn set_disable_auto_hide_cursor(&mut self, value: Option<bool>)

Source

pub fn enable_larger_than_screen(&self) -> Option<bool>

Source

pub fn set_enable_larger_than_screen(&mut self, value: Option<bool>)

Source

pub fn focusable(&self) -> Option<bool>

Source

pub fn set_focusable(&mut self, value: Option<bool>)

Source

pub fn frame(&self) -> Option<bool>

Source

pub fn set_frame(&mut self, value: Option<bool>)

Source

pub fn fullscreen_window_title(&self) -> Option<bool>

Source

pub fn set_fullscreen_window_title(&mut self, value: Option<bool>)

Source

pub fn fullscreen(&self) -> Option<bool>

Source

pub fn set_fullscreen(&mut self, value: Option<bool>)

Source

pub fn fullscreenable(&self) -> Option<bool>

Source

pub fn set_fullscreenable(&mut self, value: Option<bool>)

Source

pub fn has_shadow(&self) -> Option<bool>

Source

pub fn set_has_shadow(&mut self, value: Option<bool>)

Source

pub fn height(&self) -> Option<usize>

Source

pub fn set_height(&mut self, value: Option<usize>)

Source

pub fn icon(&self) -> Option<NativeImage>

Source

pub fn set_icon(&mut self, value: Option<NativeImage>)

Source

pub fn kind(&self) -> Option<JsString>

Source

pub fn set_kind(&mut self, value: Option<JsString>)

Source

pub fn kiosk(&self) -> Option<bool>

Source

pub fn set_kiosk(&mut self, value: Option<bool>)

Source

pub fn max_height(&self) -> Option<usize>

Source

pub fn set_max_height(&mut self, value: Option<usize>)

Source

pub fn max_width(&self) -> Option<usize>

Source

pub fn set_max_width(&mut self, value: Option<usize>)

Source

pub fn maximizable(&self) -> Option<bool>

Source

pub fn set_maximizable(&mut self, value: Option<bool>)

Source

pub fn min_height(&self) -> Option<usize>

Source

pub fn set_min_height(&mut self, value: Option<usize>)

Source

pub fn min_width(&self) -> Option<usize>

Source

pub fn set_min_width(&mut self, value: Option<usize>)

Source

pub fn minimizable(&self) -> Option<bool>

Source

pub fn set_minimizable(&mut self, value: Option<bool>)

Source

pub fn modal(&self) -> Option<bool>

Source

pub fn set_modal(&mut self, value: Option<bool>)

Source

pub fn movable(&self) -> Option<bool>

Source

pub fn set_movable(&mut self, value: Option<bool>)

Source

pub fn opacity(&self) -> Option<f32>

Source

pub fn set_opacity(&mut self, value: Option<f32>)

Source

pub fn paint_when_initially_hidden(&self) -> Option<bool>

Source

pub fn set_paint_when_initially_hidden(&mut self, value: Option<bool>)

Source

pub fn parent(&self) -> Option<BrowserWindow>

Source

pub fn set_parent(&mut self, value: Option<BrowserWindow>)

Source

pub fn resizable(&self) -> Option<bool>

Source

pub fn set_resizable(&mut self, value: Option<bool>)

Source

pub fn show(&self) -> Option<bool>

Source

pub fn set_show(&mut self, value: Option<bool>)

Source

pub fn simple_fullscreen(&self) -> Option<bool>

Source

pub fn set_simple_fullscreen(&mut self, value: Option<bool>)

Source

pub fn skip_taskbar(&self) -> Option<bool>

Source

pub fn set_skip_taskbar(&mut self, value: Option<bool>)

Source

pub fn tabbing_identifier(&self) -> Option<JsString>

Source

pub fn set_tabbing_identifier(&mut self, value: Option<JsString>)

Source

pub fn thick_frame(&self) -> Option<bool>

Source

pub fn set_thick_frame(&mut self, value: Option<bool>)

Source

pub fn title_bar_style(&self) -> Option<JsString>

Source

pub fn set_title_bar_style(&mut self, value: Option<JsString>)

Source

pub fn title(&self) -> Option<JsString>

Source

pub fn set_title(&mut self, value: Option<JsString>)

Source

pub fn transparent(&self) -> Option<bool>

Source

pub fn set_transparent(&mut self, value: Option<bool>)

Source

pub fn use_content_size(&self) -> Option<bool>

Source

pub fn set_use_content_size(&mut self, value: Option<bool>)

Source

pub fn vibrancy(&self) -> Option<JsString>

Source

pub fn set_vibrancy(&mut self, value: Option<JsString>)

Source

pub fn web_preferences(&self) -> Option<WebPreferences>

Source

pub fn set_web_preferences(&mut self, value: Option<WebPreferences>)

Source

pub fn width(&self) -> Option<usize>

Source

pub fn set_width(&mut self, value: Option<usize>)

Source

pub fn x(&self) -> Option<usize>

Source

pub fn set_x(&mut self, value: Option<usize>)

Source

pub fn y(&self) -> Option<usize>

Source

pub fn set_y(&mut self, value: Option<usize>)

Source

pub fn zoom_to_page_width(&self) -> Option<bool>

Source

pub fn set_zoom_to_page_width(&mut self, value: Option<bool>)

Trait Implementations§

Source§

impl Clone for BrowserWindowOptions

Source§

fn clone(&self) -> BrowserWindowOptions

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for BrowserWindowOptions

Source§

fn default() -> BrowserWindowOptions

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

impl From<BrowserWindowOptions> for JsValue

Source§

fn from(value: BrowserWindowOptions) -> Self

Converts to this type from the input type.
Source§

impl FromWasmAbi for BrowserWindowOptions

Source§

type Abi = WasmPtr<WasmRefCell<BrowserWindowOptions>>

The Wasm ABI type that this converts from when coming back out from the ABI boundary.
Source§

unsafe fn from_abi(js: Self::Abi) -> Self

Recover a Self from Self::Abi. Read more
Source§

impl IntoWasmAbi for BrowserWindowOptions

Source§

type Abi = WasmPtr<WasmRefCell<BrowserWindowOptions>>

The Wasm ABI type that this converts into when crossing the ABI boundary.
Source§

fn into_abi(self) -> Self::Abi

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.
Source§

impl LongRefFromWasmAbi for BrowserWindowOptions

Source§

type Abi = WasmPtr<WasmRefCell<BrowserWindowOptions>>

Same as RefFromWasmAbi::Abi
Source§

type Anchor = RcRef<BrowserWindowOptions>

Same as RefFromWasmAbi::Anchor
Source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
Source§

impl OptionFromWasmAbi for BrowserWindowOptions

Source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be deserialized as None, and otherwise it will be passed to FromWasmAbi.
Source§

impl OptionIntoWasmAbi for BrowserWindowOptions

Source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more
Source§

impl RefFromWasmAbi for BrowserWindowOptions

Source§

type Abi = WasmPtr<WasmRefCell<BrowserWindowOptions>>

The Wasm ABI type references to Self are recovered from.
Source§

type Anchor = RcRef<BrowserWindowOptions>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don’t persist beyond one function call, and so that they remain anonymous.
Source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
Source§

impl RefMutFromWasmAbi for BrowserWindowOptions

Source§

type Abi = WasmPtr<WasmRefCell<BrowserWindowOptions>>

Same as RefFromWasmAbi::Abi
Source§

type Anchor = RcRefMut<BrowserWindowOptions>

Same as RefFromWasmAbi::Anchor
Source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
Source§

impl SupportsConstructor for BrowserWindowOptions

Source§

impl SupportsInstanceProperty for BrowserWindowOptions

Source§

impl SupportsStaticProperty for BrowserWindowOptions

Source§

impl TryFromJsValue for BrowserWindowOptions

Source§

fn try_from_js_value(value: JsValue) -> Result<Self, JsValue>

Performs the conversion.
Source§

fn try_from_js_value_ref(value: &JsValue) -> Option<Self>

Performs the conversion.
Source§

impl VectorFromWasmAbi for BrowserWindowOptions

Source§

impl VectorIntoWasmAbi for BrowserWindowOptions

Source§

impl WasmDescribe for BrowserWindowOptions

Source§

impl WasmDescribeVector for BrowserWindowOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ReturnWasmAbi for T
where T: IntoWasmAbi,

Source§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
Source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never return in the case of Err.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more