pub struct Controller { /* private fields */ }
Expand description
Wrapper for ICoreWebView2Controller
.
Implementations§
Source§impl Controller
impl Controller
pub fn into_inner(self) -> ComRc<dyn ICoreWebView2Controller>
pub fn as_inner(&self) -> &ComRc<dyn ICoreWebView2Controller>
Source§impl Controller
impl Controller
pub fn get_is_visible(&self) -> Result<bool>
pub fn put_is_visible(&self, enabled: bool) -> Result<()>
pub fn get_bounds(&self) -> Result<RECT>
pub fn put_bounds(&self, bounds: RECT) -> Result<()>
pub fn get_zoom_factor(&self) -> Result<f64>
pub fn put_zoom_factor(&self, zoom_factor: f64) -> Result<()>
pub fn add_zoom_factor_changed( &self, event_handler: impl Fn(Controller) -> Result<()> + 'static, ) -> Result<EventRegistrationToken>
pub fn remove_zoom_factor_changed( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn set_bounds_and_zoom_factor( &self, bounds: RECT, zoom_factor: f64, ) -> Result<()>
pub fn move_focus(&self, reason: MoveFocusReason) -> Result<()>
pub fn add_move_focus_requested( &self, handler: impl Fn(Controller, MoveFocusRequestedEventArgs) -> Result<()> + 'static, ) -> Result<EventRegistrationToken>
pub fn remove_move_focus_requested( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn add_got_focus( &self, event_handler: impl Fn(Controller) -> Result<()> + 'static, ) -> Result<EventRegistrationToken>
pub fn remove_got_focus(&self, token: EventRegistrationToken) -> Result<()>
pub fn add_lost_focus( &self, event_handler: impl Fn(Controller) -> Result<()> + 'static, ) -> Result<EventRegistrationToken>
pub fn remove_lost_focus(&self, token: EventRegistrationToken) -> Result<()>
pub fn add_accelerator_key_pressed( &self, handler: impl Fn(Controller, AcceleratorKeyPressedEventArgs) -> Result<()> + 'static, ) -> Result<EventRegistrationToken>
pub fn remove_accelerator_key_pressed( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn get_parent_window(&self) -> Result<HWND>
pub fn put_parent_window(&self, top_level_window: HWND) -> Result<()>
pub fn notify_parent_window_position_changed(&self) -> Result<()>
pub fn close(&self) -> Result<()>
pub fn get_webview(&self) -> Result<WebView>
pub fn get_controller2(&self) -> Result<Controller2>
Trait Implementations§
Source§impl Clone for Controller
impl Clone for Controller
Source§fn clone(&self) -> Controller
fn clone(&self) -> Controller
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 Controller
impl Debug for Controller
Source§impl From<ComRc<dyn ICoreWebView2Controller>> for Controller
impl From<ComRc<dyn ICoreWebView2Controller>> for Controller
Source§fn from(inner: ComRc<dyn ICoreWebView2Controller>) -> Self
fn from(inner: ComRc<dyn ICoreWebView2Controller>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Controller
impl !RefUnwindSafe for Controller
impl !Send for Controller
impl !Sync for Controller
impl !Unpin for Controller
impl !UnwindSafe for Controller
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