[][src]Trait webview2_sys::ICoreWebView2AcceleratorKeyPressedEventArgs

pub trait ICoreWebView2AcceleratorKeyPressedEventArgs: IUnknown {
    unsafe fn get_key_event_kind(
        &self,
        key_event_kind: *mut KeyEventKind
    ) -> HRESULT;
unsafe fn get_virtual_key(&self, virtual_key: *mut UINT) -> 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; }

Event args for the AcceleratorKeyPressed event.

Required methods

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

The key event type that caused the event to be fired.

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

The Win32 virtual key code of the key that was pressed or released. This will be one of the Win32 virtual key constants such as VK_RETURN or an (uppercase) ASCII value such as 'A'. You can check whether Ctrl or Alt are pressed by calling GetKeyState(VK_CONTROL) or GetKeyState(VK_MENU).

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

The LPARAM value that accompanied the window message. See the documentation for the WM_KEYDOWN and WM_KEYUP messages.

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.

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 will be handled by the host or not. If the Handled property is set to TRUE then this will prevent the WebView from performing the default action for this accelerator key. Otherwise the WebView will perform the default action for the accelerator key.

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

Sets the Handled property.

Loading content...

Trait Implementations

impl ComInterface for dyn ICoreWebView2AcceleratorKeyPressedEventArgs[src]

type VTable = ICoreWebView2AcceleratorKeyPressedEventArgsVTable

A COM compatible V-Table

type Super = dyn IUnknown

The interface that this interface inherits from

impl<C: ICoreWebView2AcceleratorKeyPressedEventArgs> ProductionComInterface<C> for dyn ICoreWebView2AcceleratorKeyPressedEventArgs[src]

Implementations on Foreign Types

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

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

Loading content...

Implementors

Loading content...