webview2_com::Microsoft::Web::WebView2::Win32

Trait ICoreWebView2Controller_Impl

Source
pub trait ICoreWebView2Controller_Impl: IUnknownImpl {
Show 23 methods // Required methods fn IsVisible(&self, isvisible: *mut BOOL) -> Result<(), Error>; fn SetIsVisible(&self, isvisible: BOOL) -> Result<(), Error>; fn Bounds(&self, bounds: *mut RECT) -> Result<(), Error>; fn SetBounds(&self, bounds: &RECT) -> Result<(), Error>; fn ZoomFactor(&self, zoomfactor: *mut f64) -> Result<(), Error>; fn SetZoomFactor(&self, zoomfactor: f64) -> Result<(), Error>; fn add_ZoomFactorChanged( &self, eventhandler: Ref<'_, ICoreWebView2ZoomFactorChangedEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>; fn remove_ZoomFactorChanged( &self, token: &EventRegistrationToken, ) -> Result<(), Error>; fn SetBoundsAndZoomFactor( &self, bounds: &RECT, zoomfactor: f64, ) -> Result<(), Error>; fn MoveFocus( &self, reason: COREWEBVIEW2_MOVE_FOCUS_REASON, ) -> Result<(), Error>; fn add_MoveFocusRequested( &self, eventhandler: Ref<'_, ICoreWebView2MoveFocusRequestedEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>; fn remove_MoveFocusRequested( &self, token: &EventRegistrationToken, ) -> Result<(), Error>; fn add_GotFocus( &self, eventhandler: Ref<'_, ICoreWebView2FocusChangedEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>; fn remove_GotFocus( &self, token: &EventRegistrationToken, ) -> Result<(), Error>; fn add_LostFocus( &self, eventhandler: Ref<'_, ICoreWebView2FocusChangedEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>; fn remove_LostFocus( &self, token: &EventRegistrationToken, ) -> Result<(), Error>; fn add_AcceleratorKeyPressed( &self, eventhandler: Ref<'_, ICoreWebView2AcceleratorKeyPressedEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>; fn remove_AcceleratorKeyPressed( &self, token: &EventRegistrationToken, ) -> Result<(), Error>; fn ParentWindow(&self, parentwindow: *mut HWND) -> Result<(), Error>; fn SetParentWindow(&self, parentwindow: HWND) -> Result<(), Error>; fn NotifyParentWindowPositionChanged(&self) -> Result<(), Error>; fn Close(&self) -> Result<(), Error>; fn CoreWebView2(&self) -> Result<ICoreWebView2, Error>;
}

Required Methods§

Source

fn IsVisible(&self, isvisible: *mut BOOL) -> Result<(), Error>

Source

fn SetIsVisible(&self, isvisible: BOOL) -> Result<(), Error>

Source

fn Bounds(&self, bounds: *mut RECT) -> Result<(), Error>

Source

fn SetBounds(&self, bounds: &RECT) -> Result<(), Error>

Source

fn ZoomFactor(&self, zoomfactor: *mut f64) -> Result<(), Error>

Source

fn SetZoomFactor(&self, zoomfactor: f64) -> Result<(), Error>

Source

fn add_ZoomFactorChanged( &self, eventhandler: Ref<'_, ICoreWebView2ZoomFactorChangedEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>

Source

fn remove_ZoomFactorChanged( &self, token: &EventRegistrationToken, ) -> Result<(), Error>

Source

fn SetBoundsAndZoomFactor( &self, bounds: &RECT, zoomfactor: f64, ) -> Result<(), Error>

Source

fn MoveFocus(&self, reason: COREWEBVIEW2_MOVE_FOCUS_REASON) -> Result<(), Error>

Source

fn add_MoveFocusRequested( &self, eventhandler: Ref<'_, ICoreWebView2MoveFocusRequestedEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>

Source

fn remove_MoveFocusRequested( &self, token: &EventRegistrationToken, ) -> Result<(), Error>

Source

fn add_GotFocus( &self, eventhandler: Ref<'_, ICoreWebView2FocusChangedEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>

Source

fn remove_GotFocus(&self, token: &EventRegistrationToken) -> Result<(), Error>

Source

fn add_LostFocus( &self, eventhandler: Ref<'_, ICoreWebView2FocusChangedEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>

Source

fn remove_LostFocus(&self, token: &EventRegistrationToken) -> Result<(), Error>

Source

fn add_AcceleratorKeyPressed( &self, eventhandler: Ref<'_, ICoreWebView2AcceleratorKeyPressedEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>

Source

fn remove_AcceleratorKeyPressed( &self, token: &EventRegistrationToken, ) -> Result<(), Error>

Source

fn ParentWindow(&self, parentwindow: *mut HWND) -> Result<(), Error>

Source

fn SetParentWindow(&self, parentwindow: HWND) -> Result<(), Error>

Source

fn NotifyParentWindowPositionChanged(&self) -> Result<(), Error>

Source

fn Close(&self) -> Result<(), Error>

Source

fn CoreWebView2(&self) -> Result<ICoreWebView2, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§