Struct webview2_com_sys::Microsoft::Web::WebView2::Win32::ICoreWebView2Controller
source · pub struct ICoreWebView2Controller(/* private fields */);
Implementations§
source§impl ICoreWebView2Controller
impl ICoreWebView2Controller
pub unsafe fn IsVisible(&self, isvisible: *mut BOOL) -> Result<()>
pub unsafe fn SetIsVisible<P0>(&self, isvisible: P0) -> Result<()>where
P0: IntoParam<BOOL>,
pub unsafe fn Bounds(&self, bounds: *mut RECT) -> Result<()>
pub unsafe fn SetBounds(&self, bounds: RECT) -> Result<()>
pub unsafe fn ZoomFactor(&self, zoomfactor: *mut f64) -> Result<()>
pub unsafe fn SetZoomFactor(&self, zoomfactor: f64) -> Result<()>
pub unsafe fn add_ZoomFactorChanged<P0>(
&self,
eventhandler: P0,
token: *mut EventRegistrationToken
) -> Result<()>where
P0: IntoParam<ICoreWebView2ZoomFactorChangedEventHandler>,
pub unsafe fn remove_ZoomFactorChanged( &self, token: EventRegistrationToken ) -> Result<()>
pub unsafe fn SetBoundsAndZoomFactor( &self, bounds: RECT, zoomfactor: f64 ) -> Result<()>
pub unsafe fn MoveFocus( &self, reason: COREWEBVIEW2_MOVE_FOCUS_REASON ) -> Result<()>
pub unsafe fn add_MoveFocusRequested<P0>(
&self,
eventhandler: P0,
token: *mut EventRegistrationToken
) -> Result<()>where
P0: IntoParam<ICoreWebView2MoveFocusRequestedEventHandler>,
pub unsafe fn remove_MoveFocusRequested( &self, token: EventRegistrationToken ) -> Result<()>
pub unsafe fn add_GotFocus<P0>(
&self,
eventhandler: P0,
token: *mut EventRegistrationToken
) -> Result<()>where
P0: IntoParam<ICoreWebView2FocusChangedEventHandler>,
pub unsafe fn remove_GotFocus( &self, token: EventRegistrationToken ) -> Result<()>
pub unsafe fn add_LostFocus<P0>(
&self,
eventhandler: P0,
token: *mut EventRegistrationToken
) -> Result<()>where
P0: IntoParam<ICoreWebView2FocusChangedEventHandler>,
pub unsafe fn remove_LostFocus( &self, token: EventRegistrationToken ) -> Result<()>
pub unsafe fn add_AcceleratorKeyPressed<P0>(
&self,
eventhandler: P0,
token: *mut EventRegistrationToken
) -> Result<()>where
P0: IntoParam<ICoreWebView2AcceleratorKeyPressedEventHandler>,
pub unsafe fn remove_AcceleratorKeyPressed( &self, token: EventRegistrationToken ) -> Result<()>
pub unsafe fn ParentWindow(&self, parentwindow: *mut HWND) -> Result<()>
pub unsafe fn SetParentWindow<P0>(&self, parentwindow: P0) -> Result<()>where
P0: IntoParam<HWND>,
pub unsafe fn NotifyParentWindowPositionChanged(&self) -> Result<()>
pub unsafe fn Close(&self) -> Result<()>
pub unsafe fn CoreWebView2(&self) -> Result<ICoreWebView2>
Trait Implementations§
source§impl Clone for ICoreWebView2Controller
impl Clone for ICoreWebView2Controller
source§fn clone(&self) -> ICoreWebView2Controller
fn clone(&self) -> ICoreWebView2Controller
Returns a copy 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 ICoreWebView2Controller
impl Debug for ICoreWebView2Controller
source§impl From<&ICoreWebView2Controller> for &IUnknown
impl From<&ICoreWebView2Controller> for &IUnknown
source§fn from(value: &ICoreWebView2Controller) -> Self
fn from(value: &ICoreWebView2Controller) -> Self
Converts to this type from the input type.
source§impl From<&ICoreWebView2Controller2> for &ICoreWebView2Controller
impl From<&ICoreWebView2Controller2> for &ICoreWebView2Controller
source§fn from(value: &ICoreWebView2Controller2) -> Self
fn from(value: &ICoreWebView2Controller2) -> Self
Converts to this type from the input type.
source§impl From<&ICoreWebView2Controller3> for &ICoreWebView2Controller
impl From<&ICoreWebView2Controller3> for &ICoreWebView2Controller
source§fn from(value: &ICoreWebView2Controller3) -> Self
fn from(value: &ICoreWebView2Controller3) -> Self
Converts to this type from the input type.
source§impl From<&ICoreWebView2Controller4> for &ICoreWebView2Controller
impl From<&ICoreWebView2Controller4> for &ICoreWebView2Controller
source§fn from(value: &ICoreWebView2Controller4) -> Self
fn from(value: &ICoreWebView2Controller4) -> Self
Converts to this type from the input type.
source§impl From<ICoreWebView2Controller> for IUnknown
impl From<ICoreWebView2Controller> for IUnknown
source§fn from(value: ICoreWebView2Controller) -> Self
fn from(value: ICoreWebView2Controller) -> Self
Converts to this type from the input type.
source§impl From<ICoreWebView2Controller2> for ICoreWebView2Controller
impl From<ICoreWebView2Controller2> for ICoreWebView2Controller
source§fn from(value: ICoreWebView2Controller2) -> Self
fn from(value: ICoreWebView2Controller2) -> Self
Converts to this type from the input type.
source§impl From<ICoreWebView2Controller3> for ICoreWebView2Controller
impl From<ICoreWebView2Controller3> for ICoreWebView2Controller
source§fn from(value: ICoreWebView2Controller3) -> Self
fn from(value: ICoreWebView2Controller3) -> Self
Converts to this type from the input type.
source§impl From<ICoreWebView2Controller4> for ICoreWebView2Controller
impl From<ICoreWebView2Controller4> for ICoreWebView2Controller
source§fn from(value: ICoreWebView2Controller4) -> Self
fn from(value: ICoreWebView2Controller4) -> Self
Converts to this type from the input type.
source§impl Interface for ICoreWebView2Controller
impl Interface for ICoreWebView2Controller
source§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.source§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
source§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read moresource§impl PartialEq for ICoreWebView2Controller
impl PartialEq for ICoreWebView2Controller
source§fn eq(&self, other: &ICoreWebView2Controller) -> bool
fn eq(&self, other: &ICoreWebView2Controller) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ICoreWebView2Controller
impl StructuralPartialEq for ICoreWebView2Controller
Auto Trait Implementations§
impl RefUnwindSafe for ICoreWebView2Controller
impl !Send for ICoreWebView2Controller
impl !Sync for ICoreWebView2Controller
impl Unpin for ICoreWebView2Controller
impl UnwindSafe for ICoreWebView2Controller
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