pub struct PlatformOptions { /* private fields */ }platform-windows only.Implementations§
Source§impl PlatformOptions
impl PlatformOptions
pub fn new() -> Self
Sourcepub fn browser_accelerator_keys(self, enabled: bool) -> Self
pub fn browser_accelerator_keys(self, enabled: bool) -> Self
Determines whether browser-specific accelerator keys are enabled.
Sourcepub fn built_in_error_page(self, enabled: bool) -> Self
pub fn built_in_error_page(self, enabled: bool) -> Self
Determines whether to disable built in error page for navigation failure and render process failure.
Determines whether the default context menus are shown to the user in WebView.
Sourcepub fn default_script_dialogs(self, enabled: bool) -> Self
pub fn default_script_dialogs(self, enabled: bool) -> Self
Determines whether WebView renders the default JavaScript dialog box.
Sourcepub fn dev_tools(self, enabled: bool) -> Self
pub fn dev_tools(self, enabled: bool) -> Self
Determines whether the user is able to use the context menu or keyboard shortcuts to open the DevTools window.
Sourcepub fn general_autofill(self, enabled: bool) -> Self
pub fn general_autofill(self, enabled: bool) -> Self
Determines whether general form information will be saved and autofilled.
Sourcepub fn host_objects(self, enabled: bool) -> Self
pub fn host_objects(self, enabled: bool) -> Self
Determines whether host objects are accessible from the page in WebView.
Sourcepub fn password_autosave(self, enabled: bool) -> Self
pub fn password_autosave(self, enabled: bool) -> Self
Determines whether password information will be autosaved.
Sourcepub fn pinch_zoom(self, enabled: bool) -> Self
pub fn pinch_zoom(self, enabled: bool) -> Self
Determines the ability of the end users to use pinching motions on touch input enabled devices to scale the web content in the WebView.
Sourcepub fn script(self, enabled: bool) -> Self
pub fn script(self, enabled: bool) -> Self
Determines whether running JavaScript is enabled in all future navigations in the WebView.
Determines whether the end user can use swiping gesture on touch input enabled devices to navigate in the WebView.
Sourcepub fn web_message(self, enabled: bool) -> Self
pub fn web_message(self, enabled: bool) -> Self
Determines whether communication from the host to the top-level HTML document of the WebView is allowed.
Sourcepub fn zoom_control(self, enabled: bool) -> Self
pub fn zoom_control(self, enabled: bool) -> Self
Determines whether the user is able to impact the zoom of the WebView.
Trait Implementations§
Source§impl Clone for PlatformOptions
impl Clone for PlatformOptions
Source§fn clone(&self) -> PlatformOptions
fn clone(&self) -> PlatformOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PlatformOptions
impl Debug for PlatformOptions
Source§impl Default for PlatformOptions
impl Default for PlatformOptions
Source§fn default() -> PlatformOptions
fn default() -> PlatformOptions
Auto Trait Implementations§
impl Freeze for PlatformOptions
impl RefUnwindSafe for PlatformOptions
impl Send for PlatformOptions
impl Sync for PlatformOptions
impl Unpin for PlatformOptions
impl UnwindSafe for PlatformOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more