Trait webview2_sys::ICoreWebView2PointerInfo [−][src]
pub trait ICoreWebView2PointerInfo: IUnknown {
Show 56 methods
unsafe fn get_pointer_kind(&self, pointer_kind: *mut DWORD) -> HRESULT;
unsafe fn put_pointer_kind(&self, pointer_kind: DWORD) -> HRESULT;
unsafe fn get_pointer_id(&self, pointer_id: *mut u32) -> HRESULT;
unsafe fn put_pointer_id(&self, pointer_id: u32) -> HRESULT;
unsafe fn get_frame_id(&self, frame_id: *mut u32) -> HRESULT;
unsafe fn put_frame_id(&self, frame_id: u32) -> HRESULT;
unsafe fn get_pointer_flags(&self, pointer_flags: *mut u32) -> HRESULT;
unsafe fn put_pointer_flags(&self, pointer_flags: u32) -> HRESULT;
unsafe fn get_pointer_device_rect(
&self,
pointer_device_rect: *mut RECT
) -> HRESULT;
unsafe fn put_pointer_device_rect(
&self,
pointer_device_rect: RECT
) -> HRESULT;
unsafe fn get_display_rect(&self, display_rect: *mut RECT) -> HRESULT;
unsafe fn put_display_rect(&self, display_rect: RECT) -> HRESULT;
unsafe fn get_pixel_location(&self, pixel_location: *mut POINT) -> HRESULT;
unsafe fn put_pixel_location(&self, pixel_location: POINT) -> HRESULT;
unsafe fn get_himetric_location(
&self,
himetric_location: *mut POINT
) -> HRESULT;
unsafe fn put_himetric_location(&self, himetric_location: POINT) -> HRESULT;
unsafe fn get_pixel_location_raw(
&self,
pixel_location_raw: *mut POINT
) -> HRESULT;
unsafe fn put_pixel_location_raw(
&self,
pixel_location_raw: POINT
) -> HRESULT;
unsafe fn get_himetric_location_raw(
&self,
himetric_location_raw: *mut POINT
) -> HRESULT;
unsafe fn put_himetric_location_raw(
&self,
himetric_location_raw: POINT
) -> HRESULT;
unsafe fn get_time(&self, time: *mut DWORD) -> HRESULT;
unsafe fn put_time(&self, time: DWORD) -> HRESULT;
unsafe fn get_history_count(&self, history_count: *mut u32) -> HRESULT;
unsafe fn put_history_count(&self, history_count: u32) -> HRESULT;
unsafe fn get_input_data(&self, input_data: *mut i32) -> HRESULT;
unsafe fn put_input_data(&self, input_data: i32) -> HRESULT;
unsafe fn get_key_states(&self, key_states: *mut DWORD) -> HRESULT;
unsafe fn put_key_states(&self, key_states: DWORD) -> HRESULT;
unsafe fn get_performance_count(
&self,
performance_count: *mut u64
) -> HRESULT;
unsafe fn put_performance_count(&self, performance_count: u64) -> HRESULT;
unsafe fn get_button_change_kind(
&self,
button_change_kind: *mut i32
) -> HRESULT;
unsafe fn put_button_change_kind(&self, button_change_kind: i32) -> HRESULT;
unsafe fn get_pen_flags(&self, pen_flags: *mut u32) -> HRESULT;
unsafe fn put_pen_flags(&self, pen_flags: u32) -> HRESULT;
unsafe fn get_pen_mask(&self, pen_mask: *mut u32) -> HRESULT;
unsafe fn put_pen_mask(&self, pen_mask: u32) -> HRESULT;
unsafe fn get_pen_pressure(&self, pen_pressure: *mut u32) -> HRESULT;
unsafe fn put_pen_pressure(&self, pen_pressure: u32) -> HRESULT;
unsafe fn get_pen_rotation(&self, pen_rotation: *mut u32) -> HRESULT;
unsafe fn put_pen_rotation(&self, pen_rotation: u32) -> HRESULT;
unsafe fn get_pen_tilt_x(&self, pen_tilt_x: *mut i32) -> HRESULT;
unsafe fn put_pen_tilt_x(&self, pen_tilt_x: i32) -> HRESULT;
unsafe fn get_pen_tilt_y(&self, pen_tilt_y: *mut i32) -> HRESULT;
unsafe fn put_pen_tilt_y(&self, pen_tilt_y: i32) -> HRESULT;
unsafe fn get_touch_flags(&self, touch_flags: *mut u32) -> HRESULT;
unsafe fn put_touch_flags(&self, touch_flags: u32) -> HRESULT;
unsafe fn get_touch_mask(&self, touch_mask: *mut u32) -> HRESULT;
unsafe fn put_touch_mask(&self, touch_mask: u32) -> HRESULT;
unsafe fn get_touch_contact(&self, touch_contact: *mut RECT) -> HRESULT;
unsafe fn put_touch_contact(&self, touch_contact: RECT) -> HRESULT;
unsafe fn get_touch_contact_raw(
&self,
touch_contact_raw: *mut RECT
) -> HRESULT;
unsafe fn put_touch_contact_raw(&self, touch_contact_raw: RECT) -> HRESULT;
unsafe fn get_touch_orientation(
&self,
touch_orientation: *mut u32
) -> HRESULT;
unsafe fn put_touch_orientation(&self, touch_orientation: u32) -> HRESULT;
unsafe fn get_touch_pressure(&self, touch_pressure: *mut u32) -> HRESULT;
unsafe fn put_touch_pressure(&self, touch_pressure: u32) -> HRESULT;
}
Expand description
This mostly represents a combined win32 POINTER_INFO/POINTER_TOUCH_INFO/POINTER_PEN_INFO object. It takes fields from all three and excludes some win32 specific data types like HWND and HANDLE. Note, sourceDevice is taken out but we expect the PointerDeviceRect and DisplayRect to cover the existing use cases of sourceDevice. Another big difference is that any of the point or rect locations are expected to be in WebView physical coordinates. That is, coordinates relative to the WebView and no DPI scaling applied.
Required methods
unsafe fn get_pointer_kind(&self, pointer_kind: *mut DWORD) -> HRESULT
unsafe fn get_pointer_kind(&self, pointer_kind: *mut DWORD) -> HRESULT
Get the PointerKind of the pointer event. This corresponds to the pointerKind property of the POINTER_INFO struct. The values are defined by the POINTER_INPUT_KIND enum in the Windows SDK (winuser.h). Supports PT_PEN and PT_TOUCH.
unsafe fn put_pointer_kind(&self, pointer_kind: DWORD) -> HRESULT
unsafe fn put_pointer_kind(&self, pointer_kind: DWORD) -> HRESULT
Set the PointerKind of the pointer event. This corresponds to the pointerKind property of the POINTER_INFO struct. The values are defined by the POINTER_INPUT_KIND enum in the Windows SDK (winuser.h). Supports PT_PEN and PT_TOUCH.
unsafe fn get_pointer_id(&self, pointer_id: *mut u32) -> HRESULT
unsafe fn get_pointer_id(&self, pointer_id: *mut u32) -> HRESULT
Get the PointerId of the pointer event. This corresponds to the pointerId property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_pointer_id(&self, pointer_id: u32) -> HRESULT
unsafe fn put_pointer_id(&self, pointer_id: u32) -> HRESULT
Set the PointerId of the pointer event. This corresponds to the pointerId property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_frame_id(&self, frame_id: *mut u32) -> HRESULT
unsafe fn get_frame_id(&self, frame_id: *mut u32) -> HRESULT
Get the FrameID of the pointer event. This corresponds to the frameId property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_frame_id(&self, frame_id: u32) -> HRESULT
unsafe fn put_frame_id(&self, frame_id: u32) -> HRESULT
Set the FrameID of the pointer event. This corresponds to the frameId property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_pointer_flags(&self, pointer_flags: *mut u32) -> HRESULT
unsafe fn get_pointer_flags(&self, pointer_flags: *mut u32) -> HRESULT
Get the PointerFlags of the pointer event. This corresponds to the pointerFlags property of the POINTER_INFO struct. The values are defined by the POINTER_FLAGS constants in the Windows SDK (winuser.h).
unsafe fn put_pointer_flags(&self, pointer_flags: u32) -> HRESULT
unsafe fn put_pointer_flags(&self, pointer_flags: u32) -> HRESULT
Set the PointerFlags of the pointer event. This corresponds to the pointerFlags property of the POINTER_INFO struct. The values are defined by the POINTER_FLAGS constants in the Windows SDK (winuser.h).
unsafe fn get_pointer_device_rect(
&self,
pointer_device_rect: *mut RECT
) -> HRESULT
unsafe fn get_pointer_device_rect(
&self,
pointer_device_rect: *mut RECT
) -> HRESULT
Get the PointerDeviceRect of the sourceDevice property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_pointer_device_rect(&self, pointer_device_rect: RECT) -> HRESULT
unsafe fn put_pointer_device_rect(&self, pointer_device_rect: RECT) -> HRESULT
Set the PointerDeviceRect of the sourceDevice property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_display_rect(&self, display_rect: *mut RECT) -> HRESULT
unsafe fn get_display_rect(&self, display_rect: *mut RECT) -> HRESULT
Get the DisplayRect of the sourceDevice property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_display_rect(&self, display_rect: RECT) -> HRESULT
unsafe fn put_display_rect(&self, display_rect: RECT) -> HRESULT
Set the DisplayRect of the sourceDevice property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_pixel_location(&self, pixel_location: *mut POINT) -> HRESULT
unsafe fn get_pixel_location(&self, pixel_location: *mut POINT) -> HRESULT
Get the PixelLocation of the pointer event. This corresponds to the ptPixelLocation property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_pixel_location(&self, pixel_location: POINT) -> HRESULT
unsafe fn put_pixel_location(&self, pixel_location: POINT) -> HRESULT
Set the PixelLocation of the pointer event. This corresponds to the ptPixelLocation property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_himetric_location(&self, himetric_location: *mut POINT) -> HRESULT
unsafe fn get_himetric_location(&self, himetric_location: *mut POINT) -> HRESULT
Get the HimetricLocation of the pointer event. This corresponds to the ptHimetricLocation property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_himetric_location(&self, himetric_location: POINT) -> HRESULT
unsafe fn put_himetric_location(&self, himetric_location: POINT) -> HRESULT
Set the HimetricLocation of the pointer event. This corresponds to the ptHimetricLocation property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_pixel_location_raw(
&self,
pixel_location_raw: *mut POINT
) -> HRESULT
unsafe fn get_pixel_location_raw(
&self,
pixel_location_raw: *mut POINT
) -> HRESULT
Get the PixelLocationRaw of the pointer event. This corresponds to the ptPixelLocationRaw property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_pixel_location_raw(&self, pixel_location_raw: POINT) -> HRESULT
unsafe fn put_pixel_location_raw(&self, pixel_location_raw: POINT) -> HRESULT
Set the PixelLocationRaw of the pointer event. This corresponds to the ptPixelLocationRaw property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_himetric_location_raw(
&self,
himetric_location_raw: *mut POINT
) -> HRESULT
unsafe fn get_himetric_location_raw(
&self,
himetric_location_raw: *mut POINT
) -> HRESULT
Get the HimetricLocationRaw of the pointer event. This corresponds to the ptHimetricLocationRaw property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_himetric_location_raw(
&self,
himetric_location_raw: POINT
) -> HRESULT
unsafe fn put_himetric_location_raw(
&self,
himetric_location_raw: POINT
) -> HRESULT
Set the HimetricLocationRaw of the pointer event. This corresponds to the ptHimetricLocationRaw property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
Get the Time of the pointer event. This corresponds to the dwTime property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
Set the Time of the pointer event. This corresponds to the dwTime property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_history_count(&self, history_count: *mut u32) -> HRESULT
unsafe fn get_history_count(&self, history_count: *mut u32) -> HRESULT
Get the HistoryCount of the pointer event. This corresponds to the historyCount property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_history_count(&self, history_count: u32) -> HRESULT
unsafe fn put_history_count(&self, history_count: u32) -> HRESULT
Set the HistoryCount of the pointer event. This corresponds to the historyCount property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_input_data(&self, input_data: *mut i32) -> HRESULT
unsafe fn get_input_data(&self, input_data: *mut i32) -> HRESULT
Get the InputData of the pointer event. This corresponds to the InputData property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_input_data(&self, input_data: i32) -> HRESULT
unsafe fn put_input_data(&self, input_data: i32) -> HRESULT
Set the InputData of the pointer event. This corresponds to the InputData property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_key_states(&self, key_states: *mut DWORD) -> HRESULT
unsafe fn get_key_states(&self, key_states: *mut DWORD) -> HRESULT
Get the KeyStates of the pointer event. This corresponds to the dwKeyStates property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_key_states(&self, key_states: DWORD) -> HRESULT
unsafe fn put_key_states(&self, key_states: DWORD) -> HRESULT
Set the KeyStates of the pointer event. This corresponds to the dwKeyStates property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_performance_count(&self, performance_count: *mut u64) -> HRESULT
unsafe fn get_performance_count(&self, performance_count: *mut u64) -> HRESULT
Get the PerformanceCount of the pointer event. This corresponds to the PerformanceCount property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_performance_count(&self, performance_count: u64) -> HRESULT
unsafe fn put_performance_count(&self, performance_count: u64) -> HRESULT
Set the PerformanceCount of the pointer event. This corresponds to the PerformanceCount property of the POINTER_INFO struct as defined in the Windows SDK (winuser.h).
Get the ButtonChangeKind of the pointer event. This corresponds to the ButtonChangeKind property of the POINTER_INFO struct. The values are defined by the POINTER_BUTTON_CHANGE_KIND enum in the Windows SDK (winuser.h).
Set the ButtonChangeKind of the pointer event. This corresponds to the ButtonChangeKind property of the POINTER_INFO struct. The values are defined by the POINTER_BUTTON_CHANGE_KIND enum in the Windows SDK (winuser.h).
unsafe fn get_pen_flags(&self, pen_flags: *mut u32) -> HRESULT
unsafe fn get_pen_flags(&self, pen_flags: *mut u32) -> HRESULT
Get the PenFlags of the pointer event. This corresponds to the penFlags property of the POINTER_PEN_INFO struct. The values are defined by the PEN_FLAGS constants in the Windows SDK (winuser.h).
unsafe fn put_pen_flags(&self, pen_flags: u32) -> HRESULT
unsafe fn put_pen_flags(&self, pen_flags: u32) -> HRESULT
Set the PenFlags of the pointer event. This corresponds to the penFlags property of the POINTER_PEN_INFO struct. The values are defined by the PEN_FLAGS constants in the Windows SDK (winuser.h).
unsafe fn get_pen_mask(&self, pen_mask: *mut u32) -> HRESULT
unsafe fn get_pen_mask(&self, pen_mask: *mut u32) -> HRESULT
Get the PenMask of the pointer event. This corresponds to the penMask property of the POINTER_PEN_INFO struct. The values are defined by the PEN_MASK constants in the Windows SDK (winuser.h).
unsafe fn put_pen_mask(&self, pen_mask: u32) -> HRESULT
unsafe fn put_pen_mask(&self, pen_mask: u32) -> HRESULT
Set the PenMask of the pointer event. This corresponds to the penMask property of the POINTER_PEN_INFO struct. The values are defined by the PEN_MASK constants in the Windows SDK (winuser.h).
unsafe fn get_pen_pressure(&self, pen_pressure: *mut u32) -> HRESULT
unsafe fn get_pen_pressure(&self, pen_pressure: *mut u32) -> HRESULT
Get the PenPressure of the pointer event. This corresponds to the pressure property of the POINTER_PEN_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_pen_pressure(&self, pen_pressure: u32) -> HRESULT
unsafe fn put_pen_pressure(&self, pen_pressure: u32) -> HRESULT
Set the PenPressure of the pointer event. This corresponds to the pressure property of the POINTER_PEN_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_pen_rotation(&self, pen_rotation: *mut u32) -> HRESULT
unsafe fn get_pen_rotation(&self, pen_rotation: *mut u32) -> HRESULT
Get the PenRotation of the pointer event. This corresponds to the rotation property of the POINTER_PEN_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_pen_rotation(&self, pen_rotation: u32) -> HRESULT
unsafe fn put_pen_rotation(&self, pen_rotation: u32) -> HRESULT
Set the PenRotation of the pointer event. This corresponds to the rotation property of the POINTER_PEN_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_pen_tilt_x(&self, pen_tilt_x: *mut i32) -> HRESULT
unsafe fn get_pen_tilt_x(&self, pen_tilt_x: *mut i32) -> HRESULT
Get the PenTiltX of the pointer event. This corresponds to the tiltX property of the POINTER_PEN_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_pen_tilt_x(&self, pen_tilt_x: i32) -> HRESULT
unsafe fn put_pen_tilt_x(&self, pen_tilt_x: i32) -> HRESULT
Set the PenTiltX of the pointer event. This corresponds to the tiltX property of the POINTER_PEN_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_pen_tilt_y(&self, pen_tilt_y: *mut i32) -> HRESULT
unsafe fn get_pen_tilt_y(&self, pen_tilt_y: *mut i32) -> HRESULT
Get the PenTiltY of the pointer event. This corresponds to the tiltY property of the POINTER_PEN_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_pen_tilt_y(&self, pen_tilt_y: i32) -> HRESULT
unsafe fn put_pen_tilt_y(&self, pen_tilt_y: i32) -> HRESULT
Set the PenTiltY of the pointer event. This corresponds to the tiltY property of the POINTER_PEN_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_touch_flags(&self, touch_flags: *mut u32) -> HRESULT
unsafe fn get_touch_flags(&self, touch_flags: *mut u32) -> HRESULT
Get the TouchFlags of the pointer event. This corresponds to the touchFlags property of the POINTER_TOUCH_INFO struct. The values are defined by the TOUCH_FLAGS constants in the Windows SDK (winuser.h).
unsafe fn put_touch_flags(&self, touch_flags: u32) -> HRESULT
unsafe fn put_touch_flags(&self, touch_flags: u32) -> HRESULT
Set the TouchFlags of the pointer event. This corresponds to the touchFlags property of the POINTER_TOUCH_INFO struct. The values are defined by the TOUCH_FLAGS constants in the Windows SDK (winuser.h).
unsafe fn get_touch_mask(&self, touch_mask: *mut u32) -> HRESULT
unsafe fn get_touch_mask(&self, touch_mask: *mut u32) -> HRESULT
Get the TouchMask of the pointer event. This corresponds to the touchMask property of the POINTER_TOUCH_INFO struct. The values are defined by the TOUCH_MASK constants in the Windows SDK (winuser.h).
unsafe fn put_touch_mask(&self, touch_mask: u32) -> HRESULT
unsafe fn put_touch_mask(&self, touch_mask: u32) -> HRESULT
Set the TouchMask of the pointer event. This corresponds to the touchMask property of the POINTER_TOUCH_INFO struct. The values are defined by the TOUCH_MASK constants in the Windows SDK (winuser.h).
unsafe fn get_touch_contact(&self, touch_contact: *mut RECT) -> HRESULT
unsafe fn get_touch_contact(&self, touch_contact: *mut RECT) -> HRESULT
Get the TouchContact of the pointer event. This corresponds to the rcContact property of the POINTER_TOUCH_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_touch_contact(&self, touch_contact: RECT) -> HRESULT
unsafe fn put_touch_contact(&self, touch_contact: RECT) -> HRESULT
Set the TouchContact of the pointer event. This corresponds to the rcContact property of the POINTER_TOUCH_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_touch_contact_raw(&self, touch_contact_raw: *mut RECT) -> HRESULT
unsafe fn get_touch_contact_raw(&self, touch_contact_raw: *mut RECT) -> HRESULT
Get the TouchContactRaw of the pointer event. This corresponds to the rcContactRaw property of the POINTER_TOUCH_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_touch_contact_raw(&self, touch_contact_raw: RECT) -> HRESULT
unsafe fn put_touch_contact_raw(&self, touch_contact_raw: RECT) -> HRESULT
Set the TouchContactRaw of the pointer event. This corresponds to the rcContactRaw property of the POINTER_TOUCH_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_touch_orientation(&self, touch_orientation: *mut u32) -> HRESULT
unsafe fn get_touch_orientation(&self, touch_orientation: *mut u32) -> HRESULT
Get the TouchOrientation of the pointer event. This corresponds to the orientation property of the POINTER_TOUCH_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_touch_orientation(&self, touch_orientation: u32) -> HRESULT
unsafe fn put_touch_orientation(&self, touch_orientation: u32) -> HRESULT
Set the TouchOrientation of the pointer event. This corresponds to the orientation property of the POINTER_TOUCH_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn get_touch_pressure(&self, touch_pressure: *mut u32) -> HRESULT
unsafe fn get_touch_pressure(&self, touch_pressure: *mut u32) -> HRESULT
Get the TouchPressure of the pointer event. This corresponds to the pressure property of the POINTER_TOUCH_INFO struct as defined in the Windows SDK (winuser.h).
unsafe fn put_touch_pressure(&self, touch_pressure: u32) -> HRESULT
unsafe fn put_touch_pressure(&self, touch_pressure: u32) -> HRESULT
Set the TouchPressure of the pointer event. This corresponds to the pressure property of the POINTER_TOUCH_INFO struct as defined in the Windows SDK (winuser.h).
Trait Implementations
A COM compatible V-Table
Check whether a given IID is in the inheritance hierarchy of this interface