pub struct CoreWebView2Settings(/* private fields */);
Implementations§
Source§impl CoreWebView2Settings
impl CoreWebView2Settings
pub fn IsScriptEnabled(&self) -> Result<bool>
pub fn SetIsScriptEnabled(&self, value: bool) -> Result<()>
pub fn IsWebMessageEnabled(&self) -> Result<bool>
pub fn SetIsWebMessageEnabled(&self, value: bool) -> Result<()>
pub fn AreDefaultScriptDialogsEnabled(&self) -> Result<bool>
pub fn SetAreDefaultScriptDialogsEnabled(&self, value: bool) -> Result<()>
pub fn IsStatusBarEnabled(&self) -> Result<bool>
pub fn SetIsStatusBarEnabled(&self, value: bool) -> Result<()>
pub fn AreDevToolsEnabled(&self) -> Result<bool>
pub fn SetAreDevToolsEnabled(&self, value: bool) -> Result<()>
pub fn AreDefaultContextMenusEnabled(&self) -> Result<bool>
pub fn SetAreDefaultContextMenusEnabled(&self, value: bool) -> Result<()>
pub fn AreHostObjectsAllowed(&self) -> Result<bool>
pub fn SetAreHostObjectsAllowed(&self, value: bool) -> Result<()>
pub fn IsZoomControlEnabled(&self) -> Result<bool>
pub fn SetIsZoomControlEnabled(&self, value: bool) -> Result<()>
pub fn IsBuiltInErrorPageEnabled(&self) -> Result<bool>
pub fn SetIsBuiltInErrorPageEnabled(&self, value: bool) -> Result<()>
pub fn UserAgent(&self) -> Result<HString>
pub fn SetUserAgent<'a, T0__: IntoParam<'a, HString>>( &self, value: T0__, ) -> Result<()>
pub fn AreBrowserAcceleratorKeysEnabled(&self) -> Result<bool>
pub fn SetAreBrowserAcceleratorKeysEnabled(&self, value: bool) -> Result<()>
Trait Implementations§
Source§impl Clone for CoreWebView2Settings
impl Clone for CoreWebView2Settings
Source§fn clone(&self) -> CoreWebView2Settings
fn clone(&self) -> CoreWebView2Settings
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 Debug for CoreWebView2Settings
impl Debug for CoreWebView2Settings
Source§impl From<&CoreWebView2Settings> for Object
impl From<&CoreWebView2Settings> for Object
Source§fn from(value: &CoreWebView2Settings) -> Self
fn from(value: &CoreWebView2Settings) -> Self
Converts to this type from the input type.
Source§impl From<CoreWebView2Settings> for Object
impl From<CoreWebView2Settings> for Object
Source§fn from(value: CoreWebView2Settings) -> Self
fn from(value: CoreWebView2Settings) -> Self
Converts to this type from the input type.
Source§impl Interface for CoreWebView2Settings
impl Interface for CoreWebView2Settings
const IID: Guid
type Vtable = ICoreWebView2Settings_abi
Source§impl<'a> IntoParam<'a, Object> for &'a CoreWebView2Settings
impl<'a> IntoParam<'a, Object> for &'a CoreWebView2Settings
fn into_param(self) -> Param<'a, Object>
Source§impl<'a> IntoParam<'a, Object> for CoreWebView2Settings
impl<'a> IntoParam<'a, Object> for CoreWebView2Settings
fn into_param(self) -> Param<'a, Object>
Source§impl PartialEq for CoreWebView2Settings
impl PartialEq for CoreWebView2Settings
Source§impl RuntimeName for CoreWebView2Settings
impl RuntimeName for CoreWebView2Settings
Source§impl RuntimeType for CoreWebView2Settings
impl RuntimeType for CoreWebView2Settings
const SIGNATURE: ConstBuffer
type DefaultType = Option<CoreWebView2Settings>
impl Eq for CoreWebView2Settings
impl Send for CoreWebView2Settings
impl StructuralPartialEq for CoreWebView2Settings
impl Sync for CoreWebView2Settings
Auto Trait Implementations§
impl Freeze for CoreWebView2Settings
impl RefUnwindSafe for CoreWebView2Settings
impl Unpin for CoreWebView2Settings
impl UnwindSafe for CoreWebView2Settings
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
Source§unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
Casts the ABI representation to a Rust object by taking ownership of the bits.
fn drop_param(_: &mut Param<'_, Self>)
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