ICoreWebView2AcceleratorKeyPressedEventArgs

Trait ICoreWebView2AcceleratorKeyPressedEventArgs 

Source
pub trait ICoreWebView2AcceleratorKeyPressedEventArgs: IUnknown {
    // Required methods
    unsafe fn get_key_event_kind(
        &self,
        key_event_kind: *mut KeyEventKind,
    ) -> HRESULT;
    unsafe fn get_virtual_key(&self, virtual_key: *mut u32) -> HRESULT;
    unsafe fn get_key_event_lparam(&self, l_param: *mut i32) -> HRESULT;
    unsafe fn get_physical_key_status(
        &self,
        physical_key_status: *mut PhysicalKeyStatus,
    ) -> HRESULT;
    unsafe fn get_handled(&self, handled: *mut BOOL) -> HRESULT;
    unsafe fn put_handled(&self, handled: BOOL) -> HRESULT;
}
Expand description

Event args for the AcceleratorKeyPressed event.

Required Methods§

Source

unsafe fn get_key_event_kind( &self, key_event_kind: *mut KeyEventKind, ) -> HRESULT

The key event type that caused the event to run.

Source

unsafe fn get_virtual_key(&self, virtual_key: *mut u32) -> HRESULT

The Win32 virtual key code of the key that was pressed or released. It is one of the Win32 virtual key constants such as VK_RETURN or an (uppercase) ASCII value such as A. Verify whether Ctrl or Alt are pressed by running GetKeyState(VK_CONTROL) or GetKeyState(VK_MENU).

Source

unsafe fn get_key_event_lparam(&self, l_param: *mut i32) -> HRESULT

The LPARAM value that accompanied the window message. For more information, navigate to [WM_KEYDOWN][WindowsWin32InputdevWmKeydown] and [WM_KEYUP][WindowsWin32InputdevWmKeyup].

[WindowsWin32InputdevWmKeydown]: /windows/win32/inputdev/wm-keydown “WM_KEYDOWN message | Microsoft Docs”

[WindowsWin32InputdevWmKeyup]: /windows/win32/inputdev/wm-keyup “WM_KEYUP message | Microsoft Docs”

Source

unsafe fn get_physical_key_status( &self, physical_key_status: *mut PhysicalKeyStatus, ) -> HRESULT

A structure representing the information passed in the LPARAM of the window message.

Source

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

During AcceleratorKeyPressedEvent handler invocation the WebView is blocked waiting for the decision of if the accelerator is handled by the host (or not). If the Handled property is set to TRUE then this prevents the WebView from performing the default action for this accelerator key. Otherwise the WebView performs the default action for the accelerator key.

Source

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

Sets the Handled property.

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2AcceleratorKeyPressedEventArgs

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_ACCELERATOR_KEY_PRESSED_EVENT_ARGS

The associated id for this interface
Source§

type VTable = ICoreWebView2AcceleratorKeyPressedEventArgsVTable

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: ICoreWebView2AcceleratorKeyPressedEventArgs> ProductionComInterface<C> for dyn ICoreWebView2AcceleratorKeyPressedEventArgs

Source§

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

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

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

Source§

unsafe fn get_key_event_kind( &self, key_event_kind: *mut KeyEventKind, ) -> HRESULT

Source§

unsafe fn get_virtual_key(&self, virtual_key: *mut u32) -> HRESULT

Source§

unsafe fn get_key_event_lparam(&self, l_param: *mut i32) -> HRESULT

Source§

unsafe fn get_physical_key_status( &self, physical_key_status: *mut PhysicalKeyStatus, ) -> HRESULT

Source§

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

Source§

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

Source§

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

Source§

unsafe fn get_key_event_kind( &self, key_event_kind: *mut KeyEventKind, ) -> HRESULT

Source§

unsafe fn get_virtual_key(&self, virtual_key: *mut u32) -> HRESULT

Source§

unsafe fn get_key_event_lparam(&self, l_param: *mut i32) -> HRESULT

Source§

unsafe fn get_physical_key_status( &self, physical_key_status: *mut PhysicalKeyStatus, ) -> HRESULT

Source§

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

Source§

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

Implementors§