Struct webview2::Controller [−][src]
pub struct Controller { /* fields omitted */ }
Expand description
Wrapper for ICoreWebView2Controller
.
Implementations
pub fn add_zoom_factor_changed(
&self,
event_handler: impl Fn(Controller) -> Result<()> + 'static
) -> Result<EventRegistrationToken>
pub fn add_move_focus_requested(
&self,
handler: impl Fn(Controller, MoveFocusRequestedEventArgs) -> Result<()> + 'static
) -> Result<EventRegistrationToken>
pub fn add_got_focus(
&self,
event_handler: impl Fn(Controller) -> Result<()> + 'static
) -> Result<EventRegistrationToken>
pub fn add_lost_focus(
&self,
event_handler: impl Fn(Controller) -> Result<()> + 'static
) -> Result<EventRegistrationToken>
pub fn add_accelerator_key_pressed(
&self,
handler: impl Fn(Controller, AcceleratorKeyPressedEventArgs) -> Result<()> + 'static
) -> Result<EventRegistrationToken>
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Controller
impl !Send for Controller
impl !Sync for Controller
impl !Unpin for Controller
impl !UnwindSafe for Controller
Blanket Implementations
Mutably borrows from an owned value. Read more