pub struct BrowserWindowOptions { /* private fields */ }
Implementations§
Source§impl BrowserWindowOptions
impl BrowserWindowOptions
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
pub fn new() -> BrowserWindowOptions
pub fn accept_first_mouse(&self) -> Option<bool>
pub fn set_accept_first_mouse(&mut self, value: Option<bool>)
pub fn always_on_top(&self) -> Option<bool>
pub fn set_always_on_top(&mut self, value: Option<bool>)
pub fn background_color(&self) -> Option<JsString>
pub fn set_background_color(&mut self, value: Option<JsString>)
pub fn center(&self) -> Option<bool>
pub fn set_center(&mut self, value: Option<bool>)
pub fn closable(&self) -> Option<bool>
pub fn set_closable(&mut self, value: Option<bool>)
pub fn dark_theme(&self) -> Option<bool>
pub fn set_dark_theme(&mut self, value: Option<bool>)
pub fn disable_auto_hide_cursor(&self) -> Option<bool>
pub fn set_disable_auto_hide_cursor(&mut self, value: Option<bool>)
pub fn enable_larger_than_screen(&self) -> Option<bool>
pub fn set_enable_larger_than_screen(&mut self, value: Option<bool>)
pub fn focusable(&self) -> Option<bool>
pub fn set_focusable(&mut self, value: Option<bool>)
pub fn frame(&self) -> Option<bool>
pub fn set_frame(&mut self, value: Option<bool>)
pub fn fullscreen_window_title(&self) -> Option<bool>
pub fn set_fullscreen_window_title(&mut self, value: Option<bool>)
pub fn fullscreen(&self) -> Option<bool>
pub fn set_fullscreen(&mut self, value: Option<bool>)
pub fn fullscreenable(&self) -> Option<bool>
pub fn set_fullscreenable(&mut self, value: Option<bool>)
pub fn has_shadow(&self) -> Option<bool>
pub fn set_has_shadow(&mut self, value: Option<bool>)
pub fn height(&self) -> Option<usize>
pub fn set_height(&mut self, value: Option<usize>)
pub fn icon(&self) -> Option<NativeImage>
pub fn set_icon(&mut self, value: Option<NativeImage>)
pub fn kind(&self) -> Option<JsString>
pub fn set_kind(&mut self, value: Option<JsString>)
pub fn kiosk(&self) -> Option<bool>
pub fn set_kiosk(&mut self, value: Option<bool>)
pub fn max_height(&self) -> Option<usize>
pub fn set_max_height(&mut self, value: Option<usize>)
pub fn max_width(&self) -> Option<usize>
pub fn set_max_width(&mut self, value: Option<usize>)
pub fn maximizable(&self) -> Option<bool>
pub fn set_maximizable(&mut self, value: Option<bool>)
pub fn min_height(&self) -> Option<usize>
pub fn set_min_height(&mut self, value: Option<usize>)
pub fn min_width(&self) -> Option<usize>
pub fn set_min_width(&mut self, value: Option<usize>)
pub fn minimizable(&self) -> Option<bool>
pub fn set_minimizable(&mut self, value: Option<bool>)
pub fn modal(&self) -> Option<bool>
pub fn set_modal(&mut self, value: Option<bool>)
pub fn movable(&self) -> Option<bool>
pub fn set_movable(&mut self, value: Option<bool>)
pub fn opacity(&self) -> Option<f32>
pub fn set_opacity(&mut self, value: Option<f32>)
pub fn parent(&self) -> Option<BrowserWindow>
pub fn set_parent(&mut self, value: Option<BrowserWindow>)
pub fn resizable(&self) -> Option<bool>
pub fn set_resizable(&mut self, value: Option<bool>)
pub fn show(&self) -> Option<bool>
pub fn set_show(&mut self, value: Option<bool>)
pub fn simple_fullscreen(&self) -> Option<bool>
pub fn set_simple_fullscreen(&mut self, value: Option<bool>)
pub fn skip_taskbar(&self) -> Option<bool>
pub fn set_skip_taskbar(&mut self, value: Option<bool>)
pub fn tabbing_identifier(&self) -> Option<JsString>
pub fn set_tabbing_identifier(&mut self, value: Option<JsString>)
pub fn thick_frame(&self) -> Option<bool>
pub fn set_thick_frame(&mut self, value: Option<bool>)
pub fn title_bar_style(&self) -> Option<JsString>
pub fn set_title_bar_style(&mut self, value: Option<JsString>)
pub fn title(&self) -> Option<JsString>
pub fn set_title(&mut self, value: Option<JsString>)
pub fn transparent(&self) -> Option<bool>
pub fn set_transparent(&mut self, value: Option<bool>)
pub fn use_content_size(&self) -> Option<bool>
pub fn set_use_content_size(&mut self, value: Option<bool>)
pub fn vibrancy(&self) -> Option<JsString>
pub fn set_vibrancy(&mut self, value: Option<JsString>)
pub fn web_preferences(&self) -> Option<WebPreferences>
pub fn set_web_preferences(&mut self, value: Option<WebPreferences>)
pub fn width(&self) -> Option<usize>
pub fn set_width(&mut self, value: Option<usize>)
pub fn x(&self) -> Option<usize>
pub fn set_x(&mut self, value: Option<usize>)
pub fn y(&self) -> Option<usize>
pub fn set_y(&mut self, value: Option<usize>)
pub fn zoom_to_page_width(&self) -> Option<bool>
pub fn set_zoom_to_page_width(&mut self, value: Option<bool>)
Trait Implementations§
Source§impl Clone for BrowserWindowOptions
impl Clone for BrowserWindowOptions
Source§fn clone(&self) -> BrowserWindowOptions
fn clone(&self) -> BrowserWindowOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for BrowserWindowOptions
impl Default for BrowserWindowOptions
Source§fn default() -> BrowserWindowOptions
fn default() -> BrowserWindowOptions
Returns the “default value” for a type. Read more
Source§impl From<BrowserWindowOptions> for JsValue
impl From<BrowserWindowOptions> for JsValue
Source§fn from(value: BrowserWindowOptions) -> Self
fn from(value: BrowserWindowOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for BrowserWindowOptions
impl FromWasmAbi for BrowserWindowOptions
Source§impl IntoWasmAbi for BrowserWindowOptions
impl IntoWasmAbi for BrowserWindowOptions
Source§impl RefFromWasmAbi for BrowserWindowOptions
impl RefFromWasmAbi for BrowserWindowOptions
Source§type Anchor = RcRef<BrowserWindowOptions>
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§impl VectorFromWasmAbi for BrowserWindowOptions
impl VectorFromWasmAbi for BrowserWindowOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[BrowserWindowOptions]>
Source§impl VectorIntoJsValue for BrowserWindowOptions
impl VectorIntoJsValue for BrowserWindowOptions
fn vector_into_jsvalue(vector: Box<[BrowserWindowOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for BrowserWindowOptions
impl VectorIntoWasmAbi for BrowserWindowOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[BrowserWindowOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for BrowserWindowOptions
impl WasmDescribeVector for BrowserWindowOptions
impl SupportsConstructor for BrowserWindowOptions
impl SupportsInstanceProperty for BrowserWindowOptions
impl SupportsStaticProperty for BrowserWindowOptions
Auto Trait Implementations§
impl Freeze for BrowserWindowOptions
impl RefUnwindSafe for BrowserWindowOptions
impl !Send for BrowserWindowOptions
impl !Sync for BrowserWindowOptions
impl Unpin for BrowserWindowOptions
impl UnwindSafe for BrowserWindowOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
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
.