ICoreWebView2MoveFocusRequestedEventArgs

Trait ICoreWebView2MoveFocusRequestedEventArgs 

Source
pub trait ICoreWebView2MoveFocusRequestedEventArgs: IUnknown {
    // Required methods
    unsafe fn get_reason(&self, reason: *mut MoveFocusReason) -> HRESULT;
    unsafe fn get_handled(&self, value: *mut BOOL) -> HRESULT;
    unsafe fn put_handled(&self, value: BOOL) -> HRESULT;
}
Expand description

Event args for the MoveFocusRequested event.

Required Methods§

Source

unsafe fn get_reason(&self, reason: *mut MoveFocusReason) -> HRESULT

The reason for WebView to run the MoveFocusRequested event.

Source

unsafe fn get_handled(&self, value: *mut BOOL) -> HRESULT

Indicates whether the event has been handled by the app. If the app has moved the focus to another desired location, it should set the Handled property to TRUE. When the Handled property is FALSE after the event handler returns, default action is taken. The default action is to try to find the next tab stop child window in the app and try to move focus to that window. If no other window exists to move focus, focus is cycled within the web content of the WebView.

Source

unsafe fn put_handled(&self, value: BOOL) -> HRESULT

Sets the Handled property.

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2MoveFocusRequestedEventArgs

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_MOVE_FOCUS_REQUESTED_EVENT_ARGS

The associated id for this interface
Source§

type VTable = ICoreWebView2MoveFocusRequestedEventArgsVTable

A COM compatible V-Table
Source§

type Super = dyn IUnknown

The interface that this interface inherits from
Source§

fn is_iid_in_inheritance_chain(riid: &GUID) -> bool

Check whether a given IID is in the inheritance hierarchy of this interface
Source§

impl<C: ICoreWebView2MoveFocusRequestedEventArgs> ProductionComInterface<C> for dyn ICoreWebView2MoveFocusRequestedEventArgs

Source§

fn vtable<O: Offset>() -> Self::VTable

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

impl<T: ICoreWebView2MoveFocusRequestedEventArgs + ComInterface + ?Sized> ICoreWebView2MoveFocusRequestedEventArgs for ComPtr<T>

Source§

unsafe fn get_reason(&self, reason: *mut MoveFocusReason) -> HRESULT

Source§

unsafe fn get_handled(&self, value: *mut BOOL) -> HRESULT

Source§

unsafe fn put_handled(&self, value: BOOL) -> HRESULT

Source§

impl<T: ICoreWebView2MoveFocusRequestedEventArgs + ComInterface + ?Sized> ICoreWebView2MoveFocusRequestedEventArgs for ComRc<T>

Source§

unsafe fn get_reason(&self, reason: *mut MoveFocusReason) -> HRESULT

Source§

unsafe fn get_handled(&self, value: *mut BOOL) -> HRESULT

Source§

unsafe fn put_handled(&self, value: BOOL) -> HRESULT

Implementors§