| #[cfg(feature = "UI_Input_Core")] |
| pub mod Core; |
| #[cfg(feature = "UI_Input_Inking")] |
| pub mod Inking; |
| #[cfg(feature = "UI_Input_Preview")] |
| pub mod Preview; |
| #[cfg(feature = "UI_Input_Spatial")] |
| pub mod Spatial; |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAttachableInputObject(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IAttachableInputObject { |
| type Vtable = IAttachableInputObject_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IAttachableInputObject { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b822734_a3c1_542a_b2f4_0e32b773fb07); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAttachableInputObject_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IAttachableInputObjectFactory(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IAttachableInputObjectFactory { |
| type Vtable = IAttachableInputObjectFactory_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IAttachableInputObjectFactory { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa4c54c4e_42bc_58fa_a640_ea1516f4c06b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IAttachableInputObjectFactory_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct ICrossSlidingEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for ICrossSlidingEventArgs { |
| type Vtable = ICrossSlidingEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for ICrossSlidingEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe9374738_6f88_41d9_8720_78e08e398349); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ICrossSlidingEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Devices_Input")] |
| pub PointerDeviceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Devices::Input::PointerDeviceType) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Input"))] |
| PointerDeviceType: usize, |
| #[cfg(feature = "Foundation")] |
| pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Position: usize, |
| pub CrossSlidingState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CrossSlidingState) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct ICrossSlidingEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for ICrossSlidingEventArgs2 { |
| type Vtable = ICrossSlidingEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for ICrossSlidingEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeefb7d48_c070_59f3_8dab_bcaf621d8687); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ICrossSlidingEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IDraggingEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IDraggingEventArgs { |
| type Vtable = IDraggingEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IDraggingEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1c905384_083c_4bd3_b559_179cddeb33ec); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IDraggingEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Devices_Input")] |
| pub PointerDeviceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Devices::Input::PointerDeviceType) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Input"))] |
| PointerDeviceType: usize, |
| #[cfg(feature = "Foundation")] |
| pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Position: usize, |
| pub DraggingState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut DraggingState) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IDraggingEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IDraggingEventArgs2 { |
| type Vtable = IDraggingEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IDraggingEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x71efdbf9_382a_55ca_b4b9_008123c1bf1a); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IDraggingEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IEdgeGesture(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IEdgeGesture { |
| type Vtable = IEdgeGesture_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IEdgeGesture { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x580d5292_2ab1_49aa_a7f0_33bd3f8df9f1); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IEdgeGesture_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation")] |
| pub Starting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Starting: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveStarting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveStarting: usize, |
| #[cfg(feature = "Foundation")] |
| pub Completed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Completed: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveCompleted: usize, |
| #[cfg(feature = "Foundation")] |
| pub Canceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Canceled: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveCanceled: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IEdgeGestureEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IEdgeGestureEventArgs { |
| type Vtable = IEdgeGestureEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IEdgeGestureEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x44fa4a24_2d09_42e1_8b5e_368208796a4c); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IEdgeGestureEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Kind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut EdgeGestureKind) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IEdgeGestureStatics(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IEdgeGestureStatics { |
| type Vtable = IEdgeGestureStatics_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IEdgeGestureStatics { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbc6a8519_18ee_4043_9839_4fc584d60a14); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IEdgeGestureStatics_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IGestureRecognizer(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IGestureRecognizer { |
| type Vtable = IGestureRecognizer_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IGestureRecognizer { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb47a37bf_3d6b_4f88_83e8_6dcb4012ffb0); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IGestureRecognizer_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub GestureSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GestureSettings) -> ::windows::core::HRESULT, |
| pub SetGestureSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: GestureSettings) -> ::windows::core::HRESULT, |
| pub IsInertial: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub IsActive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub ShowGestureFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub SetShowGestureFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation")] |
| pub PivotCenter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| PivotCenter: usize, |
| #[cfg(feature = "Foundation")] |
| pub SetPivotCenter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| SetPivotCenter: usize, |
| pub PivotRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub SetPivotRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows::core::HRESULT, |
| pub InertiaTranslationDeceleration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub SetInertiaTranslationDeceleration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows::core::HRESULT, |
| pub InertiaRotationDeceleration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub SetInertiaRotationDeceleration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows::core::HRESULT, |
| pub InertiaExpansionDeceleration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub SetInertiaExpansionDeceleration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows::core::HRESULT, |
| pub InertiaTranslationDisplacement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub SetInertiaTranslationDisplacement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows::core::HRESULT, |
| pub InertiaRotationAngle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub SetInertiaRotationAngle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows::core::HRESULT, |
| pub InertiaExpansion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub SetInertiaExpansion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows::core::HRESULT, |
| pub ManipulationExact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub SetManipulationExact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| pub CrossSlideThresholds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CrossSlideThresholds) -> ::windows::core::HRESULT, |
| pub SetCrossSlideThresholds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: CrossSlideThresholds) -> ::windows::core::HRESULT, |
| pub CrossSlideHorizontally: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub SetCrossSlideHorizontally: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| pub CrossSlideExact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub SetCrossSlideExact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| pub AutoProcessInertia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub SetAutoProcessInertia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| pub MouseWheelParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub CanBeDoubleTap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub ProcessDownEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation_Collections")] |
| pub ProcessMoveEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation_Collections"))] |
| ProcessMoveEvents: usize, |
| pub ProcessUpEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub ProcessMouseWheelEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, isshiftkeydown: bool, iscontrolkeydown: bool) -> ::windows::core::HRESULT, |
| pub ProcessInertia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub CompleteGesture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation")] |
| pub Tapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Tapped: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveTapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveTapped: usize, |
| #[cfg(feature = "Foundation")] |
| pub RightTapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RightTapped: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveRightTapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveRightTapped: usize, |
| #[cfg(feature = "Foundation")] |
| pub Holding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Holding: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveHolding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveHolding: usize, |
| #[cfg(feature = "Foundation")] |
| pub Dragging: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Dragging: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveDragging: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveDragging: usize, |
| #[cfg(feature = "Foundation")] |
| pub ManipulationStarted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ManipulationStarted: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveManipulationStarted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveManipulationStarted: usize, |
| #[cfg(feature = "Foundation")] |
| pub ManipulationUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ManipulationUpdated: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveManipulationUpdated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveManipulationUpdated: usize, |
| #[cfg(feature = "Foundation")] |
| pub ManipulationInertiaStarting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ManipulationInertiaStarting: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveManipulationInertiaStarting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveManipulationInertiaStarting: usize, |
| #[cfg(feature = "Foundation")] |
| pub ManipulationCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ManipulationCompleted: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveManipulationCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveManipulationCompleted: usize, |
| #[cfg(feature = "Foundation")] |
| pub CrossSliding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| CrossSliding: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveCrossSliding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveCrossSliding: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IGestureRecognizer2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IGestureRecognizer2 { |
| type Vtable = IGestureRecognizer2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IGestureRecognizer2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd646097f_6ef7_5746_8ba8_8ff2206e6f3b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IGestureRecognizer2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub TapMinContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| pub SetTapMinContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows::core::HRESULT, |
| pub TapMaxContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| pub SetTapMaxContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows::core::HRESULT, |
| pub HoldMinContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| pub SetHoldMinContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows::core::HRESULT, |
| pub HoldMaxContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| pub SetHoldMaxContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows::core::HRESULT, |
| pub HoldRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub SetHoldRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation")] |
| pub HoldStartDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::TimeSpan) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| HoldStartDelay: usize, |
| #[cfg(feature = "Foundation")] |
| pub SetHoldStartDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::TimeSpan) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| SetHoldStartDelay: usize, |
| pub TranslationMinContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| pub SetTranslationMinContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows::core::HRESULT, |
| pub TranslationMaxContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| pub SetTranslationMaxContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IHoldingEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IHoldingEventArgs { |
| type Vtable = IHoldingEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IHoldingEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2bf755c5_e799_41b4_bb40_242f40959b71); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IHoldingEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Devices_Input")] |
| pub PointerDeviceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Devices::Input::PointerDeviceType) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Input"))] |
| PointerDeviceType: usize, |
| #[cfg(feature = "Foundation")] |
| pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Position: usize, |
| pub HoldingState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut HoldingState) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IHoldingEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IHoldingEventArgs2 { |
| type Vtable = IHoldingEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IHoldingEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x141da9ea_4c79_5674_afea_493fdeb91f19); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IHoldingEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| pub CurrentContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IInputActivationListener(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IInputActivationListener { |
| type Vtable = IInputActivationListener_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IInputActivationListener { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5d6d4ed2_28c7_5ae3_aa74_c918a9f243ca); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IInputActivationListener_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut InputActivationState) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation")] |
| pub InputActivationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| InputActivationChanged: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveInputActivationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveInputActivationChanged: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IInputActivationListenerActivationChangedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IInputActivationListenerActivationChangedEventArgs { |
| type Vtable = IInputActivationListenerActivationChangedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IInputActivationListenerActivationChangedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7699b465_1dcf_5791_b4b9_6cafbeed2056); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IInputActivationListenerActivationChangedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut InputActivationState) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IKeyboardDeliveryInterceptor(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IKeyboardDeliveryInterceptor { |
| type Vtable = IKeyboardDeliveryInterceptor_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IKeyboardDeliveryInterceptor { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb4baf068_8f49_446c_8db5_8c0ffe85cc9e); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IKeyboardDeliveryInterceptor_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub IsInterceptionEnabledWhenInForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub SetIsInterceptionEnabledWhenInForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| #[cfg(all(feature = "Foundation", feature = "UI_Core"))] |
| pub KeyDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Foundation", feature = "UI_Core")))] |
| KeyDown: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveKeyDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveKeyDown: usize, |
| #[cfg(all(feature = "Foundation", feature = "UI_Core"))] |
| pub KeyUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(all(feature = "Foundation", feature = "UI_Core")))] |
| KeyUp: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveKeyUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveKeyUp: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IKeyboardDeliveryInterceptorStatics(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IKeyboardDeliveryInterceptorStatics { |
| type Vtable = IKeyboardDeliveryInterceptorStatics_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IKeyboardDeliveryInterceptorStatics { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf9f63ba2_ceba_4755_8a7e_14c0ffecd239); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IKeyboardDeliveryInterceptorStatics_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IManipulationCompletedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IManipulationCompletedEventArgs { |
| type Vtable = IManipulationCompletedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IManipulationCompletedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb34ab22b_d19b_46ff_9f38_dec7754bb9e7); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IManipulationCompletedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Devices_Input")] |
| pub PointerDeviceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Devices::Input::PointerDeviceType) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Input"))] |
| PointerDeviceType: usize, |
| #[cfg(feature = "Foundation")] |
| pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Position: usize, |
| #[cfg(feature = "Foundation")] |
| pub Cumulative: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationDelta) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Cumulative: usize, |
| #[cfg(feature = "Foundation")] |
| pub Velocities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationVelocities) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Velocities: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IManipulationCompletedEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IManipulationCompletedEventArgs2 { |
| type Vtable = IManipulationCompletedEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IManipulationCompletedEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf0c0dce7_30a9_5b96_886f_6560a85e4757); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IManipulationCompletedEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| pub CurrentContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IManipulationInertiaStartingEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IManipulationInertiaStartingEventArgs { |
| type Vtable = IManipulationInertiaStartingEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IManipulationInertiaStartingEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdd37a898_26bf_467a_9ce5_ccf3fb11371e); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IManipulationInertiaStartingEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Devices_Input")] |
| pub PointerDeviceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Devices::Input::PointerDeviceType) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Input"))] |
| PointerDeviceType: usize, |
| #[cfg(feature = "Foundation")] |
| pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Position: usize, |
| #[cfg(feature = "Foundation")] |
| pub Delta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationDelta) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Delta: usize, |
| #[cfg(feature = "Foundation")] |
| pub Cumulative: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationDelta) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Cumulative: usize, |
| #[cfg(feature = "Foundation")] |
| pub Velocities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationVelocities) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Velocities: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IManipulationInertiaStartingEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IManipulationInertiaStartingEventArgs2 { |
| type Vtable = IManipulationInertiaStartingEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IManipulationInertiaStartingEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc25409b8_f9fa_5a45_bd97_dcbbb2201860); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IManipulationInertiaStartingEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IManipulationStartedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IManipulationStartedEventArgs { |
| type Vtable = IManipulationStartedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IManipulationStartedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xddec873e_cfce_4932_8c1d_3c3d011a34c0); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IManipulationStartedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Devices_Input")] |
| pub PointerDeviceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Devices::Input::PointerDeviceType) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Input"))] |
| PointerDeviceType: usize, |
| #[cfg(feature = "Foundation")] |
| pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Position: usize, |
| #[cfg(feature = "Foundation")] |
| pub Cumulative: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationDelta) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Cumulative: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IManipulationStartedEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IManipulationStartedEventArgs2 { |
| type Vtable = IManipulationStartedEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IManipulationStartedEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2da3db4e_e583_5055_afaa_16fd986531a6); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IManipulationStartedEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IManipulationUpdatedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IManipulationUpdatedEventArgs { |
| type Vtable = IManipulationUpdatedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IManipulationUpdatedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcb354ce5_abb8_4f9f_b3ce_8181aa61ad82); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IManipulationUpdatedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Devices_Input")] |
| pub PointerDeviceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Devices::Input::PointerDeviceType) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Input"))] |
| PointerDeviceType: usize, |
| #[cfg(feature = "Foundation")] |
| pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Position: usize, |
| #[cfg(feature = "Foundation")] |
| pub Delta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationDelta) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Delta: usize, |
| #[cfg(feature = "Foundation")] |
| pub Cumulative: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationDelta) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Cumulative: usize, |
| #[cfg(feature = "Foundation")] |
| pub Velocities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ManipulationVelocities) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Velocities: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IManipulationUpdatedEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IManipulationUpdatedEventArgs2 { |
| type Vtable = IManipulationUpdatedEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IManipulationUpdatedEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3dfb96a_3306_5903_a1c5_ff9757a8689e); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IManipulationUpdatedEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| pub CurrentContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IMouseWheelParameters(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IMouseWheelParameters { |
| type Vtable = IMouseWheelParameters_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IMouseWheelParameters { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xead0ca44_9ded_4037_8149_5e4cc2564468); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IMouseWheelParameters_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation")] |
| pub CharTranslation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| CharTranslation: usize, |
| #[cfg(feature = "Foundation")] |
| pub SetCharTranslation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| SetCharTranslation: usize, |
| pub DeltaScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub SetDeltaScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows::core::HRESULT, |
| pub DeltaRotationAngle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub SetDeltaRotationAngle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation")] |
| pub PageTranslation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| PageTranslation: usize, |
| #[cfg(feature = "Foundation")] |
| pub SetPageTranslation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| SetPageTranslation: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IPointerPoint(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IPointerPoint { |
| type Vtable = IPointerPoint_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IPointerPoint { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe995317d_7296_42d9_8233_c5be73b74a4a); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IPointerPoint_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Devices_Input")] |
| pub PointerDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Input"))] |
| PointerDevice: usize, |
| #[cfg(feature = "Foundation")] |
| pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Position: usize, |
| #[cfg(feature = "Foundation")] |
| pub RawPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RawPosition: usize, |
| pub PointerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| pub FrameId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows::core::HRESULT, |
| pub IsInContact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub Properties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IPointerPointProperties(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IPointerPointProperties { |
| type Vtable = IPointerPointProperties_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IPointerPointProperties { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc79d8a4b_c163_4ee7_803f_67ce79f9972d); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IPointerPointProperties_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Pressure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub IsInverted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub IsEraser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub Orientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub XTilt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub YTilt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| pub Twist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f32) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation")] |
| pub ContactRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ContactRect: usize, |
| #[cfg(feature = "Foundation")] |
| pub ContactRectRaw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ContactRectRaw: usize, |
| pub TouchConfidence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub IsLeftButtonPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub IsRightButtonPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub IsMiddleButtonPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub MouseWheelDelta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, |
| pub IsHorizontalMouseWheel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub IsPrimary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub IsInRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub IsCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub IsBarrelButtonPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub IsXButton1Pressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub IsXButton2Pressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub PointerUpdateKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PointerUpdateKind) -> ::windows::core::HRESULT, |
| pub HasUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usagepage: u32, usageid: u32, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub GetUsageValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usagepage: u32, usageid: u32, result__: *mut i32) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IPointerPointProperties2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IPointerPointProperties2 { |
| type Vtable = IPointerPointProperties2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IPointerPointProperties2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x22c3433a_c83b_41c0_a296_5e232d64d6af); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IPointerPointProperties2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation")] |
| pub ZDistance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ZDistance: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IPointerPointStatics(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IPointerPointStatics { |
| type Vtable = IPointerPointStatics_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IPointerPointStatics { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa506638d_2a1a_413e_bc75_9f38381cc069); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IPointerPointStatics_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub GetCurrentPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pointerid: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation_Collections")] |
| pub GetIntermediatePoints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pointerid: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation_Collections"))] |
| GetIntermediatePoints: usize, |
| pub GetCurrentPointTransformed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pointerid: u32, transform: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation_Collections")] |
| pub GetIntermediatePointsTransformed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pointerid: u32, transform: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation_Collections"))] |
| GetIntermediatePointsTransformed: usize, |
| } |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct IPointerPointTransform(::windows::core::IUnknown); |
| impl IPointerPointTransform { |
| pub fn Inverse(&self) -> ::windows::core::Result<IPointerPointTransform> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Inverse)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<IPointerPointTransform>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn TryTransform(&self, inpoint: super::super::Foundation::Point, outpoint: &mut super::super::Foundation::Point) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).TryTransform)(::windows::core::Vtable::as_raw(this), inpoint, outpoint, result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn TransformBounds(&self, rect: super::super::Foundation::Rect) -> ::windows::core::Result<super::super::Foundation::Rect> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).TransformBounds)(::windows::core::Vtable::as_raw(this), rect, result__.as_mut_ptr()).from_abi::<super::super::Foundation::Rect>(result__) |
| } |
| } |
| } |
| ::windows::core::interface_hierarchy!(IPointerPointTransform, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| impl ::core::clone::Clone for IPointerPointTransform { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for IPointerPointTransform { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for IPointerPointTransform {} |
| impl ::core::fmt::Debug for IPointerPointTransform { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("IPointerPointTransform").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for IPointerPointTransform { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{4d5fe14f-b87c-4028-bc9c-59e9947fb056}"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for IPointerPointTransform { |
| type Vtable = IPointerPointTransform_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IPointerPointTransform { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4d5fe14f_b87c_4028_bc9c_59e9947fb056); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IPointerPointTransform_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Inverse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation")] |
| pub TryTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inpoint: super::super::Foundation::Point, outpoint: *mut super::super::Foundation::Point, result__: *mut bool) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| TryTransform: usize, |
| #[cfg(feature = "Foundation")] |
| pub TransformBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rect: super::super::Foundation::Rect, result__: *mut super::super::Foundation::Rect) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| TransformBounds: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IPointerVisualizationSettings(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IPointerVisualizationSettings { |
| type Vtable = IPointerVisualizationSettings_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IPointerVisualizationSettings { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4d1e6461_84f7_499d_bd91_2a36e2b7aaa2); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IPointerVisualizationSettings_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub SetIsContactFeedbackEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| pub IsContactFeedbackEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub SetIsBarrelButtonFeedbackEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| pub IsBarrelButtonFeedbackEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IPointerVisualizationSettingsStatics(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IPointerVisualizationSettingsStatics { |
| type Vtable = IPointerVisualizationSettingsStatics_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IPointerVisualizationSettingsStatics { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x68870edb_165b_4214_b4f3_584eca8c8a69); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IPointerVisualizationSettingsStatics_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialController(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialController { |
| type Vtable = IRadialController_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialController { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3055d1c8_df51_43d4_b23b_0e1037467a09); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialController_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Menu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub RotationResolutionInDegrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, |
| pub SetRotationResolutionInDegrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, |
| pub UseAutomaticHapticFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub SetUseAutomaticHapticFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation")] |
| pub ScreenContactStarted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ScreenContactStarted: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveScreenContactStarted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveScreenContactStarted: usize, |
| #[cfg(feature = "Foundation")] |
| pub ScreenContactEnded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ScreenContactEnded: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveScreenContactEnded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveScreenContactEnded: usize, |
| #[cfg(feature = "Foundation")] |
| pub ScreenContactContinued: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ScreenContactContinued: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveScreenContactContinued: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveScreenContactContinued: usize, |
| #[cfg(feature = "Foundation")] |
| pub ControlLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ControlLost: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveControlLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveControlLost: usize, |
| #[cfg(feature = "Foundation")] |
| pub RotationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RotationChanged: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveRotationChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveRotationChanged: usize, |
| #[cfg(feature = "Foundation")] |
| pub ButtonClicked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ButtonClicked: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveButtonClicked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveButtonClicked: usize, |
| #[cfg(feature = "Foundation")] |
| pub ControlAcquired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ControlAcquired: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveControlAcquired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveControlAcquired: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialController2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialController2 { |
| type Vtable = IRadialController2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialController2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d577eff_4cee_11e6_b535_001bdc06ab3b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialController2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation")] |
| pub ButtonPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ButtonPressed: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveButtonPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveButtonPressed: usize, |
| #[cfg(feature = "Foundation")] |
| pub ButtonHolding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ButtonHolding: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveButtonHolding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveButtonHolding: usize, |
| #[cfg(feature = "Foundation")] |
| pub ButtonReleased: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ButtonReleased: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveButtonReleased: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveButtonReleased: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerButtonClickedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerButtonClickedEventArgs { |
| type Vtable = IRadialControllerButtonClickedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerButtonClickedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x206aa438_e651_11e5_bf62_2c27d7404e85); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerButtonClickedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerButtonClickedEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerButtonClickedEventArgs2 { |
| type Vtable = IRadialControllerButtonClickedEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerButtonClickedEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d577ef3_3cee_11e6_b535_001bdc06ab3b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerButtonClickedEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Devices_Haptics")] |
| pub SimpleHapticsController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Haptics"))] |
| SimpleHapticsController: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerButtonHoldingEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerButtonHoldingEventArgs { |
| type Vtable = IRadialControllerButtonHoldingEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerButtonHoldingEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d577eee_3cee_11e6_b535_001bdc06ab3b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerButtonHoldingEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Devices_Haptics")] |
| pub SimpleHapticsController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Haptics"))] |
| SimpleHapticsController: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerButtonPressedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerButtonPressedEventArgs { |
| type Vtable = IRadialControllerButtonPressedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerButtonPressedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d577eed_4cee_11e6_b535_001bdc06ab3b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerButtonPressedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Devices_Haptics")] |
| pub SimpleHapticsController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Haptics"))] |
| SimpleHapticsController: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerButtonReleasedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerButtonReleasedEventArgs { |
| type Vtable = IRadialControllerButtonReleasedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerButtonReleasedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d577eef_3cee_11e6_b535_001bdc06ab3b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerButtonReleasedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Devices_Haptics")] |
| pub SimpleHapticsController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Haptics"))] |
| SimpleHapticsController: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerConfiguration(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerConfiguration { |
| type Vtable = IRadialControllerConfiguration_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerConfiguration { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa6b79ecb_6a52_4430_910c_56370a9d6b42); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerConfiguration_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation_Collections")] |
| pub SetDefaultMenuItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buttons: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation_Collections"))] |
| SetDefaultMenuItems: usize, |
| pub ResetToDefaultMenuItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub TrySelectDefaultMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: RadialControllerSystemMenuItemKind, result__: *mut bool) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerConfiguration2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerConfiguration2 { |
| type Vtable = IRadialControllerConfiguration2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerConfiguration2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d577ef7_3cee_11e6_b535_001bdc06ab3b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerConfiguration2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub SetActiveControllerWhenMenuIsSuppressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub ActiveControllerWhenMenuIsSuppressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub SetIsMenuSuppressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| pub IsMenuSuppressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerConfigurationStatics(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerConfigurationStatics { |
| type Vtable = IRadialControllerConfigurationStatics_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerConfigurationStatics { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x79b6b0e5_069a_4486_a99d_8db772b9642f); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerConfigurationStatics_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub GetForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerConfigurationStatics2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerConfigurationStatics2 { |
| type Vtable = IRadialControllerConfigurationStatics2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerConfigurationStatics2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x53e08b17_e205_48d3_9caf_80ff47c4d7c7); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerConfigurationStatics2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub SetAppController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub AppController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub SetIsAppControllerEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| pub IsAppControllerEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerControlAcquiredEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerControlAcquiredEventArgs { |
| type Vtable = IRadialControllerControlAcquiredEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerControlAcquiredEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x206aa439_e651_11e5_bf62_2c27d7404e85); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerControlAcquiredEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerControlAcquiredEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerControlAcquiredEventArgs2 { |
| type Vtable = IRadialControllerControlAcquiredEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerControlAcquiredEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d577ef4_3cee_11e6_b535_001bdc06ab3b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerControlAcquiredEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub IsButtonPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Devices_Haptics")] |
| pub SimpleHapticsController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Haptics"))] |
| SimpleHapticsController: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerMenu(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerMenu { |
| type Vtable = IRadialControllerMenu_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerMenu { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8506b35d_f640_4412_aba0_bad077e5ea8a); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerMenu_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation_Collections")] |
| pub Items: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation_Collections"))] |
| Items: usize, |
| pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub SetIsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| pub GetSelectedMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub SelectMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, menuitem: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub TrySelectPreviouslySelectedMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerMenuItem(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerMenuItem { |
| type Vtable = IRadialControllerMenuItem_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerMenuItem { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc80fc98d_ad0b_4c9c_8f2f_136a2373a6ba); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerMenuItem_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub DisplayText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, |
| pub Tag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| pub SetTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation")] |
| pub Invoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Invoked: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveInvoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveInvoked: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerMenuItemStatics(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerMenuItemStatics { |
| type Vtable = IRadialControllerMenuItemStatics_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerMenuItemStatics { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x249e0887_d842_4524_9df8_e0d647edc887); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerMenuItemStatics_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Storage_Streams")] |
| pub CreateFromIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displaytext: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, icon: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Storage_Streams"))] |
| CreateFromIcon: usize, |
| pub CreateFromKnownIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displaytext: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, value: RadialControllerMenuKnownIcon, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerMenuItemStatics2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerMenuItemStatics2 { |
| type Vtable = IRadialControllerMenuItemStatics2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerMenuItemStatics2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0cbb70be_7e3e_48bd_be04_2c7fcaa9c1ff); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerMenuItemStatics2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub CreateFromFontGlyph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displaytext: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, glyph: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, fontfamily: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Foundation")] |
| pub CreateFromFontGlyphWithUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displaytext: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, glyph: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, fontfamily: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, fonturi: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| CreateFromFontGlyphWithUri: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerRotationChangedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerRotationChangedEventArgs { |
| type Vtable = IRadialControllerRotationChangedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerRotationChangedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x206aa435_e651_11e5_bf62_2c27d7404e85); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerRotationChangedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub RotationDeltaInDegrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, |
| pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerRotationChangedEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerRotationChangedEventArgs2 { |
| type Vtable = IRadialControllerRotationChangedEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerRotationChangedEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d577eec_4cee_11e6_b535_001bdc06ab3b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerRotationChangedEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub IsButtonPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Devices_Haptics")] |
| pub SimpleHapticsController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Haptics"))] |
| SimpleHapticsController: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerScreenContact(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerScreenContact { |
| type Vtable = IRadialControllerScreenContact_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerScreenContact { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x206aa434_e651_11e5_bf62_2c27d7404e85); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerScreenContact_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation")] |
| pub Bounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Rect) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Bounds: usize, |
| #[cfg(feature = "Foundation")] |
| pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Position: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerScreenContactContinuedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerScreenContactContinuedEventArgs { |
| type Vtable = IRadialControllerScreenContactContinuedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerScreenContactContinuedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x206aa437_e651_11e5_bf62_2c27d7404e85); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerScreenContactContinuedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerScreenContactContinuedEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerScreenContactContinuedEventArgs2 { |
| type Vtable = IRadialControllerScreenContactContinuedEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerScreenContactContinuedEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d577ef1_3cee_11e6_b535_001bdc06ab3b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerScreenContactContinuedEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub IsButtonPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Devices_Haptics")] |
| pub SimpleHapticsController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Haptics"))] |
| SimpleHapticsController: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerScreenContactEndedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerScreenContactEndedEventArgs { |
| type Vtable = IRadialControllerScreenContactEndedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerScreenContactEndedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d577ef2_3cee_11e6_b535_001bdc06ab3b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerScreenContactEndedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub IsButtonPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Devices_Haptics")] |
| pub SimpleHapticsController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Haptics"))] |
| SimpleHapticsController: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerScreenContactStartedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerScreenContactStartedEventArgs { |
| type Vtable = IRadialControllerScreenContactStartedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerScreenContactStartedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x206aa436_e651_11e5_bf62_2c27d7404e85); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerScreenContactStartedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Contact: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerScreenContactStartedEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerScreenContactStartedEventArgs2 { |
| type Vtable = IRadialControllerScreenContactStartedEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerScreenContactStartedEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d577ef0_3cee_11e6_b535_001bdc06ab3b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerScreenContactStartedEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub IsButtonPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| #[cfg(feature = "Devices_Haptics")] |
| pub SimpleHapticsController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Haptics"))] |
| SimpleHapticsController: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRadialControllerStatics(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRadialControllerStatics { |
| type Vtable = IRadialControllerStatics_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRadialControllerStatics { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfaded0b7_b84c_4894_87aa_8f25aa5f288b); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRadialControllerStatics_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub IsSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub CreateForCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRightTappedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRightTappedEventArgs { |
| type Vtable = IRightTappedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRightTappedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4cbf40bd_af7a_4a36_9476_b1dce141709a); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRightTappedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Devices_Input")] |
| pub PointerDeviceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Devices::Input::PointerDeviceType) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Input"))] |
| PointerDeviceType: usize, |
| #[cfg(feature = "Foundation")] |
| pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Position: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct IRightTappedEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for IRightTappedEventArgs2 { |
| type Vtable = IRightTappedEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for IRightTappedEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x61c7b7bb_9f57_5857_a33c_c58c3dfa959e); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IRightTappedEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct ISystemButtonEventController(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for ISystemButtonEventController { |
| type Vtable = ISystemButtonEventController_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for ISystemButtonEventController { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x59b893a9_73bc_52b5_ba41_82511b2cb46c); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ISystemButtonEventController_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation")] |
| pub SystemFunctionButtonPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| SystemFunctionButtonPressed: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveSystemFunctionButtonPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveSystemFunctionButtonPressed: usize, |
| #[cfg(feature = "Foundation")] |
| pub SystemFunctionButtonReleased: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| SystemFunctionButtonReleased: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveSystemFunctionButtonReleased: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveSystemFunctionButtonReleased: usize, |
| #[cfg(feature = "Foundation")] |
| pub SystemFunctionLockChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| SystemFunctionLockChanged: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveSystemFunctionLockChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveSystemFunctionLockChanged: usize, |
| #[cfg(feature = "Foundation")] |
| pub SystemFunctionLockIndicatorChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| SystemFunctionLockIndicatorChanged: usize, |
| #[cfg(feature = "Foundation")] |
| pub RemoveSystemFunctionLockIndicatorChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| RemoveSystemFunctionLockIndicatorChanged: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct ISystemButtonEventControllerStatics(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for ISystemButtonEventControllerStatics { |
| type Vtable = ISystemButtonEventControllerStatics_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for ISystemButtonEventControllerStatics { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x632fb07b_20bd_5e15_af4a_00dbf2064ffa); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ISystemButtonEventControllerStatics_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "System")] |
| pub CreateForDispatcherQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, queue: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "System"))] |
| CreateForDispatcherQueue: usize, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct ISystemFunctionButtonEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for ISystemFunctionButtonEventArgs { |
| type Vtable = ISystemFunctionButtonEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for ISystemFunctionButtonEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4833896f_80d1_5dd6_92a7_62a508ffef5a); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ISystemFunctionButtonEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows::core::HRESULT, |
| pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct ISystemFunctionLockChangedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for ISystemFunctionLockChangedEventArgs { |
| type Vtable = ISystemFunctionLockChangedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for ISystemFunctionLockChangedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcd040608_fcf9_585c_beab_f1d2eaf364ab); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ISystemFunctionLockChangedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows::core::HRESULT, |
| pub IsLocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct ISystemFunctionLockIndicatorChangedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for ISystemFunctionLockIndicatorChangedEventArgs { |
| type Vtable = ISystemFunctionLockIndicatorChangedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for ISystemFunctionLockIndicatorChangedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb212b94e_7a6f_58ae_b304_bae61d0371b9); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ISystemFunctionLockIndicatorChangedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u64) -> ::windows::core::HRESULT, |
| pub IsIndicatorOn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub Handled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, |
| pub SetHandled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct ITappedEventArgs(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for ITappedEventArgs { |
| type Vtable = ITappedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for ITappedEventArgs { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcfa126e4_253a_4c3c_953b_395c37aed309); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ITappedEventArgs_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| #[cfg(feature = "Devices_Input")] |
| pub PointerDeviceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Devices::Input::PointerDeviceType) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Devices_Input"))] |
| PointerDeviceType: usize, |
| #[cfg(feature = "Foundation")] |
| pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Foundation::Point) -> ::windows::core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| Position: usize, |
| pub TapCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| pub struct ITappedEventArgs2(::windows::core::IUnknown); |
| unsafe impl ::windows::core::Vtable for ITappedEventArgs2 { |
| type Vtable = ITappedEventArgs2_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for ITappedEventArgs2 { |
| const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x294388f2_177e_51d5_be56_ee0866fa968c); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct ITappedEventArgs2_Vtbl { |
| pub base__: ::windows::core::IInspectable_Vtbl, |
| pub ContactCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT, |
| } |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct AttachableInputObject(::windows::core::IUnknown); |
| impl AttachableInputObject { |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Close(&self) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<super::super::Foundation::IClosable>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).Close)(::windows::core::Vtable::as_raw(this)).ok() } |
| } |
| } |
| impl ::core::clone::Clone for AttachableInputObject { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for AttachableInputObject { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for AttachableInputObject {} |
| impl ::core::fmt::Debug for AttachableInputObject { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("AttachableInputObject").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for AttachableInputObject { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.AttachableInputObject;{9b822734-a3c1-542a-b2f4-0e32b773fb07})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for AttachableInputObject { |
| type Vtable = IAttachableInputObject_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for AttachableInputObject { |
| const IID: ::windows::core::GUID = <IAttachableInputObject as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for AttachableInputObject { |
| const NAME: &'static str = "Windows.UI.Input.AttachableInputObject"; |
| } |
| ::windows::core::interface_hierarchy!(AttachableInputObject, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[cfg(feature = "Foundation")] |
| impl ::core::convert::TryFrom<AttachableInputObject> for super::super::Foundation::IClosable { |
| type Error = ::windows::core::Error; |
| fn try_from(value: AttachableInputObject) -> ::windows::core::Result<Self> { |
| ::core::convert::TryFrom::try_from(&value) |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| impl ::core::convert::TryFrom<&AttachableInputObject> for super::super::Foundation::IClosable { |
| type Error = ::windows::core::Error; |
| fn try_from(value: &AttachableInputObject) -> ::windows::core::Result<Self> { |
| ::windows::core::Interface::cast(value) |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| impl<'a> ::core::convert::TryFrom<&AttachableInputObject> for ::windows::core::InParam<'a, super::super::Foundation::IClosable> { |
| type Error = ::windows::core::Error; |
| fn try_from(value: &AttachableInputObject) -> ::windows::core::Result<Self> { |
| let item = ::std::convert::TryInto::try_into(value)?; |
| Ok(::windows::core::InParam::owned(item)) |
| } |
| } |
| unsafe impl ::core::marker::Send for AttachableInputObject {} |
| unsafe impl ::core::marker::Sync for AttachableInputObject {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct CrossSlidingEventArgs(::windows::core::IUnknown); |
| impl CrossSlidingEventArgs { |
| #[doc = "*Required features: `\"Devices_Input\"`*"] |
| #[cfg(feature = "Devices_Input")] |
| pub fn PointerDeviceType(&self) -> ::windows::core::Result<super::super::Devices::Input::PointerDeviceType> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PointerDeviceType)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Input::PointerDeviceType>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Position(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Position)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| pub fn CrossSlidingState(&self) -> ::windows::core::Result<CrossSlidingState> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CrossSlidingState)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<CrossSlidingState>(result__) |
| } |
| } |
| pub fn ContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<ICrossSlidingEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for CrossSlidingEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for CrossSlidingEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for CrossSlidingEventArgs {} |
| impl ::core::fmt::Debug for CrossSlidingEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("CrossSlidingEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for CrossSlidingEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.CrossSlidingEventArgs;{e9374738-6f88-41d9-8720-78e08e398349})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for CrossSlidingEventArgs { |
| type Vtable = ICrossSlidingEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for CrossSlidingEventArgs { |
| const IID: ::windows::core::GUID = <ICrossSlidingEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for CrossSlidingEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.CrossSlidingEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(CrossSlidingEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct DraggingEventArgs(::windows::core::IUnknown); |
| impl DraggingEventArgs { |
| #[doc = "*Required features: `\"Devices_Input\"`*"] |
| #[cfg(feature = "Devices_Input")] |
| pub fn PointerDeviceType(&self) -> ::windows::core::Result<super::super::Devices::Input::PointerDeviceType> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PointerDeviceType)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Input::PointerDeviceType>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Position(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Position)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| pub fn DraggingState(&self) -> ::windows::core::Result<DraggingState> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).DraggingState)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<DraggingState>(result__) |
| } |
| } |
| pub fn ContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IDraggingEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for DraggingEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for DraggingEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for DraggingEventArgs {} |
| impl ::core::fmt::Debug for DraggingEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("DraggingEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for DraggingEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.DraggingEventArgs;{1c905384-083c-4bd3-b559-179cddeb33ec})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for DraggingEventArgs { |
| type Vtable = IDraggingEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for DraggingEventArgs { |
| const IID: ::windows::core::GUID = <IDraggingEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for DraggingEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.DraggingEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(DraggingEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct EdgeGesture(::windows::core::IUnknown); |
| impl EdgeGesture { |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Starting(&self, handler: &super::super::Foundation::TypedEventHandler<EdgeGesture, EdgeGestureEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Starting)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveStarting(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveStarting)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Completed(&self, handler: &super::super::Foundation::TypedEventHandler<EdgeGesture, EdgeGestureEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Completed)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveCompleted)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Canceled(&self, handler: &super::super::Foundation::TypedEventHandler<EdgeGesture, EdgeGestureEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Canceled)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveCanceled(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveCanceled)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| pub fn GetForCurrentView() -> ::windows::core::Result<EdgeGesture> { |
| Self::IEdgeGestureStatics(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).GetForCurrentView)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<EdgeGesture>(result__) |
| }) |
| } |
| #[doc(hidden)] |
| pub fn IEdgeGestureStatics<R, F: FnOnce(&IEdgeGestureStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::core::FactoryCache<EdgeGesture, IEdgeGestureStatics> = ::windows::core::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| } |
| impl ::core::clone::Clone for EdgeGesture { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for EdgeGesture { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for EdgeGesture {} |
| impl ::core::fmt::Debug for EdgeGesture { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("EdgeGesture").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for EdgeGesture { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.EdgeGesture;{580d5292-2ab1-49aa-a7f0-33bd3f8df9f1})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for EdgeGesture { |
| type Vtable = IEdgeGesture_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for EdgeGesture { |
| const IID: ::windows::core::GUID = <IEdgeGesture as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for EdgeGesture { |
| const NAME: &'static str = "Windows.UI.Input.EdgeGesture"; |
| } |
| ::windows::core::interface_hierarchy!(EdgeGesture, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct EdgeGestureEventArgs(::windows::core::IUnknown); |
| impl EdgeGestureEventArgs { |
| pub fn Kind(&self) -> ::windows::core::Result<EdgeGestureKind> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Kind)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<EdgeGestureKind>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for EdgeGestureEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for EdgeGestureEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for EdgeGestureEventArgs {} |
| impl ::core::fmt::Debug for EdgeGestureEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("EdgeGestureEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for EdgeGestureEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.EdgeGestureEventArgs;{44fa4a24-2d09-42e1-8b5e-368208796a4c})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for EdgeGestureEventArgs { |
| type Vtable = IEdgeGestureEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for EdgeGestureEventArgs { |
| const IID: ::windows::core::GUID = <IEdgeGestureEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for EdgeGestureEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.EdgeGestureEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(EdgeGestureEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct GestureRecognizer(::windows::core::IUnknown); |
| impl GestureRecognizer { |
| pub fn new() -> ::windows::core::Result<Self> { |
| Self::IActivationFactory(|f| f.ActivateInstance::<Self>()) |
| } |
| fn IActivationFactory<R, F: FnOnce(&::windows::core::IGenericFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::core::FactoryCache<GestureRecognizer, ::windows::core::IGenericFactory> = ::windows::core::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| pub fn GestureSettings(&self) -> ::windows::core::Result<GestureSettings> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).GestureSettings)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<GestureSettings>(result__) |
| } |
| } |
| pub fn SetGestureSettings(&self, value: GestureSettings) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetGestureSettings)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn IsInertial(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsInertial)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn IsActive(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsActive)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn ShowGestureFeedback(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ShowGestureFeedback)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn SetShowGestureFeedback(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetShowGestureFeedback)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn PivotCenter(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PivotCenter)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn SetPivotCenter(&self, value: super::super::Foundation::Point) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetPivotCenter)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn PivotRadius(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PivotRadius)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn SetPivotRadius(&self, value: f32) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetPivotRadius)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn InertiaTranslationDeceleration(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).InertiaTranslationDeceleration)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn SetInertiaTranslationDeceleration(&self, value: f32) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetInertiaTranslationDeceleration)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn InertiaRotationDeceleration(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).InertiaRotationDeceleration)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn SetInertiaRotationDeceleration(&self, value: f32) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetInertiaRotationDeceleration)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn InertiaExpansionDeceleration(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).InertiaExpansionDeceleration)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn SetInertiaExpansionDeceleration(&self, value: f32) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetInertiaExpansionDeceleration)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn InertiaTranslationDisplacement(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).InertiaTranslationDisplacement)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn SetInertiaTranslationDisplacement(&self, value: f32) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetInertiaTranslationDisplacement)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn InertiaRotationAngle(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).InertiaRotationAngle)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn SetInertiaRotationAngle(&self, value: f32) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetInertiaRotationAngle)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn InertiaExpansion(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).InertiaExpansion)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn SetInertiaExpansion(&self, value: f32) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetInertiaExpansion)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn ManipulationExact(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ManipulationExact)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn SetManipulationExact(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetManipulationExact)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn CrossSlideThresholds(&self) -> ::windows::core::Result<CrossSlideThresholds> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CrossSlideThresholds)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<CrossSlideThresholds>(result__) |
| } |
| } |
| pub fn SetCrossSlideThresholds(&self, value: CrossSlideThresholds) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetCrossSlideThresholds)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn CrossSlideHorizontally(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CrossSlideHorizontally)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn SetCrossSlideHorizontally(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetCrossSlideHorizontally)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn CrossSlideExact(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CrossSlideExact)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn SetCrossSlideExact(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetCrossSlideExact)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn AutoProcessInertia(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).AutoProcessInertia)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn SetAutoProcessInertia(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetAutoProcessInertia)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn MouseWheelParameters(&self) -> ::windows::core::Result<MouseWheelParameters> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).MouseWheelParameters)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<MouseWheelParameters>(result__) |
| } |
| } |
| pub fn CanBeDoubleTap(&self, value: &PointerPoint) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CanBeDoubleTap)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(value), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn ProcessDownEvent(&self, value: &PointerPoint) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).ProcessDownEvent)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(value)).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation_Collections\"`*"] |
| #[cfg(feature = "Foundation_Collections")] |
| pub fn ProcessMoveEvents<'a, P0, E0>(&self, value: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::std::convert::TryInto<::windows::core::InParam<'a, super::super::Foundation::Collections::IVector<PointerPoint>>, Error = E0>, |
| E0: ::std::convert::Into<::windows::core::Error>, |
| { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).ProcessMoveEvents)(::windows::core::Vtable::as_raw(this), value.try_into().map_err(|e| e.into())?.abi()).ok() } |
| } |
| pub fn ProcessUpEvent(&self, value: &PointerPoint) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).ProcessUpEvent)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(value)).ok() } |
| } |
| pub fn ProcessMouseWheelEvent(&self, value: &PointerPoint, isshiftkeydown: bool, iscontrolkeydown: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).ProcessMouseWheelEvent)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(value), isshiftkeydown, iscontrolkeydown).ok() } |
| } |
| pub fn ProcessInertia(&self) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).ProcessInertia)(::windows::core::Vtable::as_raw(this)).ok() } |
| } |
| pub fn CompleteGesture(&self) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).CompleteGesture)(::windows::core::Vtable::as_raw(this)).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Tapped(&self, handler: &super::super::Foundation::TypedEventHandler<GestureRecognizer, TappedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Tapped)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveTapped(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveTapped)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RightTapped(&self, handler: &super::super::Foundation::TypedEventHandler<GestureRecognizer, RightTappedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).RightTapped)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveRightTapped(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveRightTapped)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Holding(&self, handler: &super::super::Foundation::TypedEventHandler<GestureRecognizer, HoldingEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Holding)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveHolding(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveHolding)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Dragging(&self, handler: &super::super::Foundation::TypedEventHandler<GestureRecognizer, DraggingEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Dragging)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveDragging(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveDragging)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ManipulationStarted(&self, handler: &super::super::Foundation::TypedEventHandler<GestureRecognizer, ManipulationStartedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ManipulationStarted)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveManipulationStarted(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveManipulationStarted)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ManipulationUpdated(&self, handler: &super::super::Foundation::TypedEventHandler<GestureRecognizer, ManipulationUpdatedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ManipulationUpdated)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveManipulationUpdated(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveManipulationUpdated)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ManipulationInertiaStarting(&self, handler: &super::super::Foundation::TypedEventHandler<GestureRecognizer, ManipulationInertiaStartingEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ManipulationInertiaStarting)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveManipulationInertiaStarting(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveManipulationInertiaStarting)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ManipulationCompleted(&self, handler: &super::super::Foundation::TypedEventHandler<GestureRecognizer, ManipulationCompletedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ManipulationCompleted)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveManipulationCompleted(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveManipulationCompleted)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn CrossSliding(&self, handler: &super::super::Foundation::TypedEventHandler<GestureRecognizer, CrossSlidingEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CrossSliding)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveCrossSliding(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveCrossSliding)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| pub fn TapMinContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).TapMinContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| pub fn SetTapMinContactCount(&self, value: u32) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).SetTapMinContactCount)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn TapMaxContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).TapMaxContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| pub fn SetTapMaxContactCount(&self, value: u32) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).SetTapMaxContactCount)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn HoldMinContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).HoldMinContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| pub fn SetHoldMinContactCount(&self, value: u32) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).SetHoldMinContactCount)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn HoldMaxContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).HoldMaxContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| pub fn SetHoldMaxContactCount(&self, value: u32) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).SetHoldMaxContactCount)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn HoldRadius(&self) -> ::windows::core::Result<f32> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).HoldRadius)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn SetHoldRadius(&self, value: f32) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).SetHoldRadius)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn HoldStartDelay(&self) -> ::windows::core::Result<super::super::Foundation::TimeSpan> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).HoldStartDelay)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::TimeSpan>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn SetHoldStartDelay(&self, value: super::super::Foundation::TimeSpan) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).SetHoldStartDelay)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn TranslationMinContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).TranslationMinContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| pub fn SetTranslationMinContactCount(&self, value: u32) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).SetTranslationMinContactCount)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn TranslationMaxContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).TranslationMaxContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| pub fn SetTranslationMaxContactCount(&self, value: u32) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<IGestureRecognizer2>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).SetTranslationMaxContactCount)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| } |
| impl ::core::clone::Clone for GestureRecognizer { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for GestureRecognizer { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for GestureRecognizer {} |
| impl ::core::fmt::Debug for GestureRecognizer { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("GestureRecognizer").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for GestureRecognizer { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.GestureRecognizer;{b47a37bf-3d6b-4f88-83e8-6dcb4012ffb0})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for GestureRecognizer { |
| type Vtable = IGestureRecognizer_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for GestureRecognizer { |
| const IID: ::windows::core::GUID = <IGestureRecognizer as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for GestureRecognizer { |
| const NAME: &'static str = "Windows.UI.Input.GestureRecognizer"; |
| } |
| ::windows::core::interface_hierarchy!(GestureRecognizer, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct HoldingEventArgs(::windows::core::IUnknown); |
| impl HoldingEventArgs { |
| #[doc = "*Required features: `\"Devices_Input\"`*"] |
| #[cfg(feature = "Devices_Input")] |
| pub fn PointerDeviceType(&self) -> ::windows::core::Result<super::super::Devices::Input::PointerDeviceType> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PointerDeviceType)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Input::PointerDeviceType>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Position(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Position)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| pub fn HoldingState(&self) -> ::windows::core::Result<HoldingState> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).HoldingState)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<HoldingState>(result__) |
| } |
| } |
| pub fn ContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IHoldingEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| pub fn CurrentContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IHoldingEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CurrentContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for HoldingEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for HoldingEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for HoldingEventArgs {} |
| impl ::core::fmt::Debug for HoldingEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("HoldingEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for HoldingEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.HoldingEventArgs;{2bf755c5-e799-41b4-bb40-242f40959b71})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for HoldingEventArgs { |
| type Vtable = IHoldingEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for HoldingEventArgs { |
| const IID: ::windows::core::GUID = <IHoldingEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for HoldingEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.HoldingEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(HoldingEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct InputActivationListener(::windows::core::IUnknown); |
| impl InputActivationListener { |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Close(&self) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<super::super::Foundation::IClosable>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).Close)(::windows::core::Vtable::as_raw(this)).ok() } |
| } |
| pub fn State(&self) -> ::windows::core::Result<InputActivationState> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).State)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<InputActivationState>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn InputActivationChanged(&self, handler: &super::super::Foundation::TypedEventHandler<InputActivationListener, InputActivationListenerActivationChangedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).InputActivationChanged)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveInputActivationChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveInputActivationChanged)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| } |
| impl ::core::clone::Clone for InputActivationListener { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for InputActivationListener { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for InputActivationListener {} |
| impl ::core::fmt::Debug for InputActivationListener { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("InputActivationListener").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for InputActivationListener { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.InputActivationListener;{5d6d4ed2-28c7-5ae3-aa74-c918a9f243ca})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for InputActivationListener { |
| type Vtable = IInputActivationListener_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for InputActivationListener { |
| const IID: ::windows::core::GUID = <IInputActivationListener as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for InputActivationListener { |
| const NAME: &'static str = "Windows.UI.Input.InputActivationListener"; |
| } |
| ::windows::core::interface_hierarchy!(InputActivationListener, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[cfg(feature = "Foundation")] |
| impl ::core::convert::TryFrom<InputActivationListener> for super::super::Foundation::IClosable { |
| type Error = ::windows::core::Error; |
| fn try_from(value: InputActivationListener) -> ::windows::core::Result<Self> { |
| ::core::convert::TryFrom::try_from(&value) |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| impl ::core::convert::TryFrom<&InputActivationListener> for super::super::Foundation::IClosable { |
| type Error = ::windows::core::Error; |
| fn try_from(value: &InputActivationListener) -> ::windows::core::Result<Self> { |
| ::windows::core::Interface::cast(value) |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| impl<'a> ::core::convert::TryFrom<&InputActivationListener> for ::windows::core::InParam<'a, super::super::Foundation::IClosable> { |
| type Error = ::windows::core::Error; |
| fn try_from(value: &InputActivationListener) -> ::windows::core::Result<Self> { |
| let item = ::std::convert::TryInto::try_into(value)?; |
| Ok(::windows::core::InParam::owned(item)) |
| } |
| } |
| impl ::core::convert::From<InputActivationListener> for AttachableInputObject { |
| fn from(value: InputActivationListener) -> Self { |
| ::core::convert::From::from(&value) |
| } |
| } |
| impl ::core::convert::From<&InputActivationListener> for AttachableInputObject { |
| fn from(value: &InputActivationListener) -> Self { |
| ::windows::core::Interface::cast(value).unwrap() |
| } |
| } |
| impl<'a> ::core::convert::From<&InputActivationListener> for ::windows::core::InParam<'a, AttachableInputObject> { |
| fn from(value: &InputActivationListener) -> Self { |
| ::windows::core::InParam::owned(value.into()) |
| } |
| } |
| unsafe impl ::core::marker::Send for InputActivationListener {} |
| unsafe impl ::core::marker::Sync for InputActivationListener {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct InputActivationListenerActivationChangedEventArgs(::windows::core::IUnknown); |
| impl InputActivationListenerActivationChangedEventArgs { |
| pub fn State(&self) -> ::windows::core::Result<InputActivationState> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).State)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<InputActivationState>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for InputActivationListenerActivationChangedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for InputActivationListenerActivationChangedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for InputActivationListenerActivationChangedEventArgs {} |
| impl ::core::fmt::Debug for InputActivationListenerActivationChangedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("InputActivationListenerActivationChangedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for InputActivationListenerActivationChangedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.InputActivationListenerActivationChangedEventArgs;{7699b465-1dcf-5791-b4b9-6cafbeed2056})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for InputActivationListenerActivationChangedEventArgs { |
| type Vtable = IInputActivationListenerActivationChangedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for InputActivationListenerActivationChangedEventArgs { |
| const IID: ::windows::core::GUID = <IInputActivationListenerActivationChangedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for InputActivationListenerActivationChangedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.InputActivationListenerActivationChangedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(InputActivationListenerActivationChangedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for InputActivationListenerActivationChangedEventArgs {} |
| unsafe impl ::core::marker::Sync for InputActivationListenerActivationChangedEventArgs {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct KeyboardDeliveryInterceptor(::windows::core::IUnknown); |
| impl KeyboardDeliveryInterceptor { |
| pub fn IsInterceptionEnabledWhenInForeground(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsInterceptionEnabledWhenInForeground)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn SetIsInterceptionEnabledWhenInForeground(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetIsInterceptionEnabledWhenInForeground)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`, `\"UI_Core\"`*"] |
| #[cfg(all(feature = "Foundation", feature = "UI_Core"))] |
| pub fn KeyDown(&self, handler: &super::super::Foundation::TypedEventHandler<KeyboardDeliveryInterceptor, super::Core::KeyEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).KeyDown)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveKeyDown(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveKeyDown)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`, `\"UI_Core\"`*"] |
| #[cfg(all(feature = "Foundation", feature = "UI_Core"))] |
| pub fn KeyUp(&self, handler: &super::super::Foundation::TypedEventHandler<KeyboardDeliveryInterceptor, super::Core::KeyEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).KeyUp)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveKeyUp(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveKeyUp)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| pub fn GetForCurrentView() -> ::windows::core::Result<KeyboardDeliveryInterceptor> { |
| Self::IKeyboardDeliveryInterceptorStatics(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).GetForCurrentView)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<KeyboardDeliveryInterceptor>(result__) |
| }) |
| } |
| #[doc(hidden)] |
| pub fn IKeyboardDeliveryInterceptorStatics<R, F: FnOnce(&IKeyboardDeliveryInterceptorStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::core::FactoryCache<KeyboardDeliveryInterceptor, IKeyboardDeliveryInterceptorStatics> = ::windows::core::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| } |
| impl ::core::clone::Clone for KeyboardDeliveryInterceptor { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for KeyboardDeliveryInterceptor { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for KeyboardDeliveryInterceptor {} |
| impl ::core::fmt::Debug for KeyboardDeliveryInterceptor { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("KeyboardDeliveryInterceptor").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for KeyboardDeliveryInterceptor { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.KeyboardDeliveryInterceptor;{b4baf068-8f49-446c-8db5-8c0ffe85cc9e})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for KeyboardDeliveryInterceptor { |
| type Vtable = IKeyboardDeliveryInterceptor_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for KeyboardDeliveryInterceptor { |
| const IID: ::windows::core::GUID = <IKeyboardDeliveryInterceptor as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for KeyboardDeliveryInterceptor { |
| const NAME: &'static str = "Windows.UI.Input.KeyboardDeliveryInterceptor"; |
| } |
| ::windows::core::interface_hierarchy!(KeyboardDeliveryInterceptor, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for KeyboardDeliveryInterceptor {} |
| unsafe impl ::core::marker::Sync for KeyboardDeliveryInterceptor {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct ManipulationCompletedEventArgs(::windows::core::IUnknown); |
| impl ManipulationCompletedEventArgs { |
| #[doc = "*Required features: `\"Devices_Input\"`*"] |
| #[cfg(feature = "Devices_Input")] |
| pub fn PointerDeviceType(&self) -> ::windows::core::Result<super::super::Devices::Input::PointerDeviceType> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PointerDeviceType)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Input::PointerDeviceType>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Position(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Position)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Cumulative(&self) -> ::windows::core::Result<ManipulationDelta> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Cumulative)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<ManipulationDelta>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Velocities(&self) -> ::windows::core::Result<ManipulationVelocities> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Velocities)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<ManipulationVelocities>(result__) |
| } |
| } |
| pub fn ContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IManipulationCompletedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| pub fn CurrentContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IManipulationCompletedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CurrentContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for ManipulationCompletedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for ManipulationCompletedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for ManipulationCompletedEventArgs {} |
| impl ::core::fmt::Debug for ManipulationCompletedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ManipulationCompletedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for ManipulationCompletedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.ManipulationCompletedEventArgs;{b34ab22b-d19b-46ff-9f38-dec7754bb9e7})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for ManipulationCompletedEventArgs { |
| type Vtable = IManipulationCompletedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for ManipulationCompletedEventArgs { |
| const IID: ::windows::core::GUID = <IManipulationCompletedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for ManipulationCompletedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.ManipulationCompletedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(ManipulationCompletedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct ManipulationInertiaStartingEventArgs(::windows::core::IUnknown); |
| impl ManipulationInertiaStartingEventArgs { |
| #[doc = "*Required features: `\"Devices_Input\"`*"] |
| #[cfg(feature = "Devices_Input")] |
| pub fn PointerDeviceType(&self) -> ::windows::core::Result<super::super::Devices::Input::PointerDeviceType> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PointerDeviceType)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Input::PointerDeviceType>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Position(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Position)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Delta(&self) -> ::windows::core::Result<ManipulationDelta> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Delta)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<ManipulationDelta>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Cumulative(&self) -> ::windows::core::Result<ManipulationDelta> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Cumulative)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<ManipulationDelta>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Velocities(&self) -> ::windows::core::Result<ManipulationVelocities> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Velocities)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<ManipulationVelocities>(result__) |
| } |
| } |
| pub fn ContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IManipulationInertiaStartingEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for ManipulationInertiaStartingEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for ManipulationInertiaStartingEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for ManipulationInertiaStartingEventArgs {} |
| impl ::core::fmt::Debug for ManipulationInertiaStartingEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ManipulationInertiaStartingEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for ManipulationInertiaStartingEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.ManipulationInertiaStartingEventArgs;{dd37a898-26bf-467a-9ce5-ccf3fb11371e})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for ManipulationInertiaStartingEventArgs { |
| type Vtable = IManipulationInertiaStartingEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for ManipulationInertiaStartingEventArgs { |
| const IID: ::windows::core::GUID = <IManipulationInertiaStartingEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for ManipulationInertiaStartingEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.ManipulationInertiaStartingEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(ManipulationInertiaStartingEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct ManipulationStartedEventArgs(::windows::core::IUnknown); |
| impl ManipulationStartedEventArgs { |
| #[doc = "*Required features: `\"Devices_Input\"`*"] |
| #[cfg(feature = "Devices_Input")] |
| pub fn PointerDeviceType(&self) -> ::windows::core::Result<super::super::Devices::Input::PointerDeviceType> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PointerDeviceType)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Input::PointerDeviceType>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Position(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Position)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Cumulative(&self) -> ::windows::core::Result<ManipulationDelta> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Cumulative)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<ManipulationDelta>(result__) |
| } |
| } |
| pub fn ContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IManipulationStartedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for ManipulationStartedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for ManipulationStartedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for ManipulationStartedEventArgs {} |
| impl ::core::fmt::Debug for ManipulationStartedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ManipulationStartedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for ManipulationStartedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.ManipulationStartedEventArgs;{ddec873e-cfce-4932-8c1d-3c3d011a34c0})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for ManipulationStartedEventArgs { |
| type Vtable = IManipulationStartedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for ManipulationStartedEventArgs { |
| const IID: ::windows::core::GUID = <IManipulationStartedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for ManipulationStartedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.ManipulationStartedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(ManipulationStartedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct ManipulationUpdatedEventArgs(::windows::core::IUnknown); |
| impl ManipulationUpdatedEventArgs { |
| #[doc = "*Required features: `\"Devices_Input\"`*"] |
| #[cfg(feature = "Devices_Input")] |
| pub fn PointerDeviceType(&self) -> ::windows::core::Result<super::super::Devices::Input::PointerDeviceType> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PointerDeviceType)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Input::PointerDeviceType>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Position(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Position)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Delta(&self) -> ::windows::core::Result<ManipulationDelta> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Delta)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<ManipulationDelta>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Cumulative(&self) -> ::windows::core::Result<ManipulationDelta> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Cumulative)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<ManipulationDelta>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Velocities(&self) -> ::windows::core::Result<ManipulationVelocities> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Velocities)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<ManipulationVelocities>(result__) |
| } |
| } |
| pub fn ContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IManipulationUpdatedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| pub fn CurrentContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IManipulationUpdatedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CurrentContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for ManipulationUpdatedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for ManipulationUpdatedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for ManipulationUpdatedEventArgs {} |
| impl ::core::fmt::Debug for ManipulationUpdatedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("ManipulationUpdatedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for ManipulationUpdatedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.ManipulationUpdatedEventArgs;{cb354ce5-abb8-4f9f-b3ce-8181aa61ad82})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for ManipulationUpdatedEventArgs { |
| type Vtable = IManipulationUpdatedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for ManipulationUpdatedEventArgs { |
| const IID: ::windows::core::GUID = <IManipulationUpdatedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for ManipulationUpdatedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.ManipulationUpdatedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(ManipulationUpdatedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct MouseWheelParameters(::windows::core::IUnknown); |
| impl MouseWheelParameters { |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn CharTranslation(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CharTranslation)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn SetCharTranslation(&self, value: super::super::Foundation::Point) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetCharTranslation)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn DeltaScale(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).DeltaScale)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn SetDeltaScale(&self, value: f32) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetDeltaScale)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn DeltaRotationAngle(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).DeltaRotationAngle)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn SetDeltaRotationAngle(&self, value: f32) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetDeltaRotationAngle)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn PageTranslation(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PageTranslation)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn SetPageTranslation(&self, value: super::super::Foundation::Point) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetPageTranslation)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| } |
| impl ::core::clone::Clone for MouseWheelParameters { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for MouseWheelParameters { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for MouseWheelParameters {} |
| impl ::core::fmt::Debug for MouseWheelParameters { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("MouseWheelParameters").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for MouseWheelParameters { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.MouseWheelParameters;{ead0ca44-9ded-4037-8149-5e4cc2564468})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for MouseWheelParameters { |
| type Vtable = IMouseWheelParameters_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for MouseWheelParameters { |
| const IID: ::windows::core::GUID = <IMouseWheelParameters as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for MouseWheelParameters { |
| const NAME: &'static str = "Windows.UI.Input.MouseWheelParameters"; |
| } |
| ::windows::core::interface_hierarchy!(MouseWheelParameters, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct PointerPoint(::windows::core::IUnknown); |
| impl PointerPoint { |
| #[doc = "*Required features: `\"Devices_Input\"`*"] |
| #[cfg(feature = "Devices_Input")] |
| pub fn PointerDevice(&self) -> ::windows::core::Result<super::super::Devices::Input::PointerDevice> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PointerDevice)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Input::PointerDevice>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Position(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Position)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RawPosition(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).RawPosition)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| pub fn PointerId(&self) -> ::windows::core::Result<u32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PointerId)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| pub fn FrameId(&self) -> ::windows::core::Result<u32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).FrameId)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| pub fn Timestamp(&self) -> ::windows::core::Result<u64> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Timestamp)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u64>(result__) |
| } |
| } |
| pub fn IsInContact(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsInContact)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn Properties(&self) -> ::windows::core::Result<PointerPointProperties> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Properties)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<PointerPointProperties>(result__) |
| } |
| } |
| pub fn GetCurrentPoint(pointerid: u32) -> ::windows::core::Result<PointerPoint> { |
| Self::IPointerPointStatics(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).GetCurrentPoint)(::windows::core::Vtable::as_raw(this), pointerid, result__.as_mut_ptr()).from_abi::<PointerPoint>(result__) |
| }) |
| } |
| #[doc = "*Required features: `\"Foundation_Collections\"`*"] |
| #[cfg(feature = "Foundation_Collections")] |
| pub fn GetIntermediatePoints(pointerid: u32) -> ::windows::core::Result<super::super::Foundation::Collections::IVector<PointerPoint>> { |
| Self::IPointerPointStatics(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).GetIntermediatePoints)(::windows::core::Vtable::as_raw(this), pointerid, result__.as_mut_ptr()).from_abi::<super::super::Foundation::Collections::IVector<PointerPoint>>(result__) |
| }) |
| } |
| pub fn GetCurrentPointTransformed<'a, P0, E0>(pointerid: u32, transform: P0) -> ::windows::core::Result<PointerPoint> |
| where |
| P0: ::std::convert::TryInto<::windows::core::InParam<'a, IPointerPointTransform>, Error = E0>, |
| E0: ::std::convert::Into<::windows::core::Error>, |
| { |
| Self::IPointerPointStatics(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).GetCurrentPointTransformed)(::windows::core::Vtable::as_raw(this), pointerid, transform.try_into().map_err(|e| e.into())?.abi(), result__.as_mut_ptr()).from_abi::<PointerPoint>(result__) |
| }) |
| } |
| #[doc = "*Required features: `\"Foundation_Collections\"`*"] |
| #[cfg(feature = "Foundation_Collections")] |
| pub fn GetIntermediatePointsTransformed<'a, P0, E0>(pointerid: u32, transform: P0) -> ::windows::core::Result<super::super::Foundation::Collections::IVector<PointerPoint>> |
| where |
| P0: ::std::convert::TryInto<::windows::core::InParam<'a, IPointerPointTransform>, Error = E0>, |
| E0: ::std::convert::Into<::windows::core::Error>, |
| { |
| Self::IPointerPointStatics(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).GetIntermediatePointsTransformed)(::windows::core::Vtable::as_raw(this), pointerid, transform.try_into().map_err(|e| e.into())?.abi(), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Collections::IVector<PointerPoint>>(result__) |
| }) |
| } |
| #[doc(hidden)] |
| pub fn IPointerPointStatics<R, F: FnOnce(&IPointerPointStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::core::FactoryCache<PointerPoint, IPointerPointStatics> = ::windows::core::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| } |
| impl ::core::clone::Clone for PointerPoint { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for PointerPoint { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for PointerPoint {} |
| impl ::core::fmt::Debug for PointerPoint { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PointerPoint").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for PointerPoint { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.PointerPoint;{e995317d-7296-42d9-8233-c5be73b74a4a})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for PointerPoint { |
| type Vtable = IPointerPoint_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for PointerPoint { |
| const IID: ::windows::core::GUID = <IPointerPoint as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for PointerPoint { |
| const NAME: &'static str = "Windows.UI.Input.PointerPoint"; |
| } |
| ::windows::core::interface_hierarchy!(PointerPoint, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct PointerPointProperties(::windows::core::IUnknown); |
| impl PointerPointProperties { |
| pub fn Pressure(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Pressure)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn IsInverted(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsInverted)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn IsEraser(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsEraser)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn Orientation(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Orientation)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn XTilt(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).XTilt)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn YTilt(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).YTilt)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| pub fn Twist(&self) -> ::windows::core::Result<f32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Twist)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f32>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ContactRect(&self) -> ::windows::core::Result<super::super::Foundation::Rect> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ContactRect)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Rect>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ContactRectRaw(&self) -> ::windows::core::Result<super::super::Foundation::Rect> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ContactRectRaw)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Rect>(result__) |
| } |
| } |
| pub fn TouchConfidence(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).TouchConfidence)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn IsLeftButtonPressed(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsLeftButtonPressed)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn IsRightButtonPressed(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsRightButtonPressed)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn IsMiddleButtonPressed(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsMiddleButtonPressed)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn MouseWheelDelta(&self) -> ::windows::core::Result<i32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).MouseWheelDelta)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<i32>(result__) |
| } |
| } |
| pub fn IsHorizontalMouseWheel(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsHorizontalMouseWheel)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn IsPrimary(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsPrimary)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn IsInRange(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsInRange)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn IsCanceled(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsCanceled)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn IsBarrelButtonPressed(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsBarrelButtonPressed)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn IsXButton1Pressed(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsXButton1Pressed)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn IsXButton2Pressed(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsXButton2Pressed)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn PointerUpdateKind(&self) -> ::windows::core::Result<PointerUpdateKind> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PointerUpdateKind)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<PointerUpdateKind>(result__) |
| } |
| } |
| pub fn HasUsage(&self, usagepage: u32, usageid: u32) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).HasUsage)(::windows::core::Vtable::as_raw(this), usagepage, usageid, result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn GetUsageValue(&self, usagepage: u32, usageid: u32) -> ::windows::core::Result<i32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).GetUsageValue)(::windows::core::Vtable::as_raw(this), usagepage, usageid, result__.as_mut_ptr()).from_abi::<i32>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ZDistance(&self) -> ::windows::core::Result<super::super::Foundation::IReference<f32>> { |
| let this = &::windows::core::Interface::cast::<IPointerPointProperties2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ZDistance)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::IReference<f32>>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for PointerPointProperties { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for PointerPointProperties { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for PointerPointProperties {} |
| impl ::core::fmt::Debug for PointerPointProperties { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PointerPointProperties").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for PointerPointProperties { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.PointerPointProperties;{c79d8a4b-c163-4ee7-803f-67ce79f9972d})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for PointerPointProperties { |
| type Vtable = IPointerPointProperties_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for PointerPointProperties { |
| const IID: ::windows::core::GUID = <IPointerPointProperties as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for PointerPointProperties { |
| const NAME: &'static str = "Windows.UI.Input.PointerPointProperties"; |
| } |
| ::windows::core::interface_hierarchy!(PointerPointProperties, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct PointerVisualizationSettings(::windows::core::IUnknown); |
| impl PointerVisualizationSettings { |
| pub fn SetIsContactFeedbackEnabled(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetIsContactFeedbackEnabled)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn IsContactFeedbackEnabled(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsContactFeedbackEnabled)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn SetIsBarrelButtonFeedbackEnabled(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetIsBarrelButtonFeedbackEnabled)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn IsBarrelButtonFeedbackEnabled(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsBarrelButtonFeedbackEnabled)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn GetForCurrentView() -> ::windows::core::Result<PointerVisualizationSettings> { |
| Self::IPointerVisualizationSettingsStatics(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).GetForCurrentView)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<PointerVisualizationSettings>(result__) |
| }) |
| } |
| #[doc(hidden)] |
| pub fn IPointerVisualizationSettingsStatics<R, F: FnOnce(&IPointerVisualizationSettingsStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::core::FactoryCache<PointerVisualizationSettings, IPointerVisualizationSettingsStatics> = ::windows::core::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| } |
| impl ::core::clone::Clone for PointerVisualizationSettings { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for PointerVisualizationSettings { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for PointerVisualizationSettings {} |
| impl ::core::fmt::Debug for PointerVisualizationSettings { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PointerVisualizationSettings").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for PointerVisualizationSettings { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.PointerVisualizationSettings;{4d1e6461-84f7-499d-bd91-2a36e2b7aaa2})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for PointerVisualizationSettings { |
| type Vtable = IPointerVisualizationSettings_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for PointerVisualizationSettings { |
| const IID: ::windows::core::GUID = <IPointerVisualizationSettings as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for PointerVisualizationSettings { |
| const NAME: &'static str = "Windows.UI.Input.PointerVisualizationSettings"; |
| } |
| ::windows::core::interface_hierarchy!(PointerVisualizationSettings, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for PointerVisualizationSettings {} |
| unsafe impl ::core::marker::Sync for PointerVisualizationSettings {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialController(::windows::core::IUnknown); |
| impl RadialController { |
| pub fn Menu(&self) -> ::windows::core::Result<RadialControllerMenu> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Menu)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialControllerMenu>(result__) |
| } |
| } |
| pub fn RotationResolutionInDegrees(&self) -> ::windows::core::Result<f64> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).RotationResolutionInDegrees)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f64>(result__) |
| } |
| } |
| pub fn SetRotationResolutionInDegrees(&self, value: f64) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetRotationResolutionInDegrees)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn UseAutomaticHapticFeedback(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).UseAutomaticHapticFeedback)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn SetUseAutomaticHapticFeedback(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetUseAutomaticHapticFeedback)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ScreenContactStarted(&self, handler: &super::super::Foundation::TypedEventHandler<RadialController, RadialControllerScreenContactStartedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ScreenContactStarted)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveScreenContactStarted(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveScreenContactStarted)(::windows::core::Vtable::as_raw(this), cookie).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ScreenContactEnded(&self, handler: &super::super::Foundation::TypedEventHandler<RadialController, ::windows::core::IInspectable>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ScreenContactEnded)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveScreenContactEnded(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveScreenContactEnded)(::windows::core::Vtable::as_raw(this), cookie).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ScreenContactContinued(&self, handler: &super::super::Foundation::TypedEventHandler<RadialController, RadialControllerScreenContactContinuedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ScreenContactContinued)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveScreenContactContinued(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveScreenContactContinued)(::windows::core::Vtable::as_raw(this), cookie).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ControlLost(&self, handler: &super::super::Foundation::TypedEventHandler<RadialController, ::windows::core::IInspectable>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ControlLost)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveControlLost(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveControlLost)(::windows::core::Vtable::as_raw(this), cookie).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RotationChanged(&self, handler: &super::super::Foundation::TypedEventHandler<RadialController, RadialControllerRotationChangedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).RotationChanged)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveRotationChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveRotationChanged)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ButtonClicked(&self, handler: &super::super::Foundation::TypedEventHandler<RadialController, RadialControllerButtonClickedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ButtonClicked)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveButtonClicked(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveButtonClicked)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ControlAcquired(&self, handler: &super::super::Foundation::TypedEventHandler<RadialController, RadialControllerControlAcquiredEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ControlAcquired)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveControlAcquired(&self, cookie: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveControlAcquired)(::windows::core::Vtable::as_raw(this), cookie).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ButtonPressed(&self, handler: &super::super::Foundation::TypedEventHandler<RadialController, RadialControllerButtonPressedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = &::windows::core::Interface::cast::<IRadialController2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ButtonPressed)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveButtonPressed(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<IRadialController2>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveButtonPressed)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ButtonHolding(&self, handler: &super::super::Foundation::TypedEventHandler<RadialController, RadialControllerButtonHoldingEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = &::windows::core::Interface::cast::<IRadialController2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ButtonHolding)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveButtonHolding(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<IRadialController2>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveButtonHolding)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn ButtonReleased(&self, handler: &super::super::Foundation::TypedEventHandler<RadialController, RadialControllerButtonReleasedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = &::windows::core::Interface::cast::<IRadialController2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ButtonReleased)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveButtonReleased(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<IRadialController2>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveButtonReleased)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| pub fn IsSupported() -> ::windows::core::Result<bool> { |
| Self::IRadialControllerStatics(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsSupported)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| }) |
| } |
| pub fn CreateForCurrentView() -> ::windows::core::Result<RadialController> { |
| Self::IRadialControllerStatics(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CreateForCurrentView)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialController>(result__) |
| }) |
| } |
| #[doc(hidden)] |
| pub fn IRadialControllerStatics<R, F: FnOnce(&IRadialControllerStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::core::FactoryCache<RadialController, IRadialControllerStatics> = ::windows::core::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| } |
| impl ::core::clone::Clone for RadialController { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialController { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialController {} |
| impl ::core::fmt::Debug for RadialController { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialController").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialController { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialController;{3055d1c8-df51-43d4-b23b-0e1037467a09})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialController { |
| type Vtable = IRadialController_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialController { |
| const IID: ::windows::core::GUID = <IRadialController as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialController { |
| const NAME: &'static str = "Windows.UI.Input.RadialController"; |
| } |
| ::windows::core::interface_hierarchy!(RadialController, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialController {} |
| unsafe impl ::core::marker::Sync for RadialController {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialControllerButtonClickedEventArgs(::windows::core::IUnknown); |
| impl RadialControllerButtonClickedEventArgs { |
| pub fn Contact(&self) -> ::windows::core::Result<RadialControllerScreenContact> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Contact)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialControllerScreenContact>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Devices_Haptics\"`*"] |
| #[cfg(feature = "Devices_Haptics")] |
| pub fn SimpleHapticsController(&self) -> ::windows::core::Result<super::super::Devices::Haptics::SimpleHapticsController> { |
| let this = &::windows::core::Interface::cast::<IRadialControllerButtonClickedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).SimpleHapticsController)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Haptics::SimpleHapticsController>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for RadialControllerButtonClickedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialControllerButtonClickedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialControllerButtonClickedEventArgs {} |
| impl ::core::fmt::Debug for RadialControllerButtonClickedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerButtonClickedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerButtonClickedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialControllerButtonClickedEventArgs;{206aa438-e651-11e5-bf62-2c27d7404e85})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialControllerButtonClickedEventArgs { |
| type Vtable = IRadialControllerButtonClickedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialControllerButtonClickedEventArgs { |
| const IID: ::windows::core::GUID = <IRadialControllerButtonClickedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialControllerButtonClickedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.RadialControllerButtonClickedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(RadialControllerButtonClickedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialControllerButtonClickedEventArgs {} |
| unsafe impl ::core::marker::Sync for RadialControllerButtonClickedEventArgs {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialControllerButtonHoldingEventArgs(::windows::core::IUnknown); |
| impl RadialControllerButtonHoldingEventArgs { |
| pub fn Contact(&self) -> ::windows::core::Result<RadialControllerScreenContact> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Contact)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialControllerScreenContact>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Devices_Haptics\"`*"] |
| #[cfg(feature = "Devices_Haptics")] |
| pub fn SimpleHapticsController(&self) -> ::windows::core::Result<super::super::Devices::Haptics::SimpleHapticsController> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).SimpleHapticsController)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Haptics::SimpleHapticsController>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for RadialControllerButtonHoldingEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialControllerButtonHoldingEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialControllerButtonHoldingEventArgs {} |
| impl ::core::fmt::Debug for RadialControllerButtonHoldingEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerButtonHoldingEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerButtonHoldingEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialControllerButtonHoldingEventArgs;{3d577eee-3cee-11e6-b535-001bdc06ab3b})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialControllerButtonHoldingEventArgs { |
| type Vtable = IRadialControllerButtonHoldingEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialControllerButtonHoldingEventArgs { |
| const IID: ::windows::core::GUID = <IRadialControllerButtonHoldingEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialControllerButtonHoldingEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.RadialControllerButtonHoldingEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(RadialControllerButtonHoldingEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialControllerButtonHoldingEventArgs {} |
| unsafe impl ::core::marker::Sync for RadialControllerButtonHoldingEventArgs {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialControllerButtonPressedEventArgs(::windows::core::IUnknown); |
| impl RadialControllerButtonPressedEventArgs { |
| pub fn Contact(&self) -> ::windows::core::Result<RadialControllerScreenContact> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Contact)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialControllerScreenContact>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Devices_Haptics\"`*"] |
| #[cfg(feature = "Devices_Haptics")] |
| pub fn SimpleHapticsController(&self) -> ::windows::core::Result<super::super::Devices::Haptics::SimpleHapticsController> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).SimpleHapticsController)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Haptics::SimpleHapticsController>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for RadialControllerButtonPressedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialControllerButtonPressedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialControllerButtonPressedEventArgs {} |
| impl ::core::fmt::Debug for RadialControllerButtonPressedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerButtonPressedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerButtonPressedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialControllerButtonPressedEventArgs;{3d577eed-4cee-11e6-b535-001bdc06ab3b})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialControllerButtonPressedEventArgs { |
| type Vtable = IRadialControllerButtonPressedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialControllerButtonPressedEventArgs { |
| const IID: ::windows::core::GUID = <IRadialControllerButtonPressedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialControllerButtonPressedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.RadialControllerButtonPressedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(RadialControllerButtonPressedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialControllerButtonPressedEventArgs {} |
| unsafe impl ::core::marker::Sync for RadialControllerButtonPressedEventArgs {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialControllerButtonReleasedEventArgs(::windows::core::IUnknown); |
| impl RadialControllerButtonReleasedEventArgs { |
| pub fn Contact(&self) -> ::windows::core::Result<RadialControllerScreenContact> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Contact)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialControllerScreenContact>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Devices_Haptics\"`*"] |
| #[cfg(feature = "Devices_Haptics")] |
| pub fn SimpleHapticsController(&self) -> ::windows::core::Result<super::super::Devices::Haptics::SimpleHapticsController> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).SimpleHapticsController)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Haptics::SimpleHapticsController>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for RadialControllerButtonReleasedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialControllerButtonReleasedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialControllerButtonReleasedEventArgs {} |
| impl ::core::fmt::Debug for RadialControllerButtonReleasedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerButtonReleasedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerButtonReleasedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialControllerButtonReleasedEventArgs;{3d577eef-3cee-11e6-b535-001bdc06ab3b})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialControllerButtonReleasedEventArgs { |
| type Vtable = IRadialControllerButtonReleasedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialControllerButtonReleasedEventArgs { |
| const IID: ::windows::core::GUID = <IRadialControllerButtonReleasedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialControllerButtonReleasedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.RadialControllerButtonReleasedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(RadialControllerButtonReleasedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialControllerButtonReleasedEventArgs {} |
| unsafe impl ::core::marker::Sync for RadialControllerButtonReleasedEventArgs {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialControllerConfiguration(::windows::core::IUnknown); |
| impl RadialControllerConfiguration { |
| #[doc = "*Required features: `\"Foundation_Collections\"`*"] |
| #[cfg(feature = "Foundation_Collections")] |
| pub fn SetDefaultMenuItems<'a, P0, E0>(&self, buttons: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::std::convert::TryInto<::windows::core::InParam<'a, super::super::Foundation::Collections::IIterable<RadialControllerSystemMenuItemKind>>, Error = E0>, |
| E0: ::std::convert::Into<::windows::core::Error>, |
| { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetDefaultMenuItems)(::windows::core::Vtable::as_raw(this), buttons.try_into().map_err(|e| e.into())?.abi()).ok() } |
| } |
| pub fn ResetToDefaultMenuItems(&self) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).ResetToDefaultMenuItems)(::windows::core::Vtable::as_raw(this)).ok() } |
| } |
| pub fn TrySelectDefaultMenuItem(&self, r#type: RadialControllerSystemMenuItemKind) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).TrySelectDefaultMenuItem)(::windows::core::Vtable::as_raw(this), r#type, result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn SetActiveControllerWhenMenuIsSuppressed(&self, value: &RadialController) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<IRadialControllerConfiguration2>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).SetActiveControllerWhenMenuIsSuppressed)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(value)).ok() } |
| } |
| pub fn ActiveControllerWhenMenuIsSuppressed(&self) -> ::windows::core::Result<RadialController> { |
| let this = &::windows::core::Interface::cast::<IRadialControllerConfiguration2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ActiveControllerWhenMenuIsSuppressed)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialController>(result__) |
| } |
| } |
| pub fn SetIsMenuSuppressed(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<IRadialControllerConfiguration2>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).SetIsMenuSuppressed)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn IsMenuSuppressed(&self) -> ::windows::core::Result<bool> { |
| let this = &::windows::core::Interface::cast::<IRadialControllerConfiguration2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsMenuSuppressed)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn GetForCurrentView() -> ::windows::core::Result<RadialControllerConfiguration> { |
| Self::IRadialControllerConfigurationStatics(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).GetForCurrentView)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialControllerConfiguration>(result__) |
| }) |
| } |
| pub fn SetAppController(value: &RadialController) -> ::windows::core::Result<()> { |
| Self::IRadialControllerConfigurationStatics2(|this| unsafe { (::windows::core::Vtable::vtable(this).SetAppController)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(value)).ok() }) |
| } |
| pub fn AppController() -> ::windows::core::Result<RadialController> { |
| Self::IRadialControllerConfigurationStatics2(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).AppController)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialController>(result__) |
| }) |
| } |
| pub fn SetIsAppControllerEnabled(value: bool) -> ::windows::core::Result<()> { |
| Self::IRadialControllerConfigurationStatics2(|this| unsafe { (::windows::core::Vtable::vtable(this).SetIsAppControllerEnabled)(::windows::core::Vtable::as_raw(this), value).ok() }) |
| } |
| pub fn IsAppControllerEnabled() -> ::windows::core::Result<bool> { |
| Self::IRadialControllerConfigurationStatics2(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsAppControllerEnabled)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| }) |
| } |
| #[doc(hidden)] |
| pub fn IRadialControllerConfigurationStatics<R, F: FnOnce(&IRadialControllerConfigurationStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::core::FactoryCache<RadialControllerConfiguration, IRadialControllerConfigurationStatics> = ::windows::core::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| #[doc(hidden)] |
| pub fn IRadialControllerConfigurationStatics2<R, F: FnOnce(&IRadialControllerConfigurationStatics2) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::core::FactoryCache<RadialControllerConfiguration, IRadialControllerConfigurationStatics2> = ::windows::core::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| } |
| impl ::core::clone::Clone for RadialControllerConfiguration { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialControllerConfiguration { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialControllerConfiguration {} |
| impl ::core::fmt::Debug for RadialControllerConfiguration { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerConfiguration").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerConfiguration { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialControllerConfiguration;{a6b79ecb-6a52-4430-910c-56370a9d6b42})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialControllerConfiguration { |
| type Vtable = IRadialControllerConfiguration_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialControllerConfiguration { |
| const IID: ::windows::core::GUID = <IRadialControllerConfiguration as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialControllerConfiguration { |
| const NAME: &'static str = "Windows.UI.Input.RadialControllerConfiguration"; |
| } |
| ::windows::core::interface_hierarchy!(RadialControllerConfiguration, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialControllerConfiguration {} |
| unsafe impl ::core::marker::Sync for RadialControllerConfiguration {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialControllerControlAcquiredEventArgs(::windows::core::IUnknown); |
| impl RadialControllerControlAcquiredEventArgs { |
| pub fn Contact(&self) -> ::windows::core::Result<RadialControllerScreenContact> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Contact)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialControllerScreenContact>(result__) |
| } |
| } |
| pub fn IsButtonPressed(&self) -> ::windows::core::Result<bool> { |
| let this = &::windows::core::Interface::cast::<IRadialControllerControlAcquiredEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsButtonPressed)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Devices_Haptics\"`*"] |
| #[cfg(feature = "Devices_Haptics")] |
| pub fn SimpleHapticsController(&self) -> ::windows::core::Result<super::super::Devices::Haptics::SimpleHapticsController> { |
| let this = &::windows::core::Interface::cast::<IRadialControllerControlAcquiredEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).SimpleHapticsController)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Haptics::SimpleHapticsController>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for RadialControllerControlAcquiredEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialControllerControlAcquiredEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialControllerControlAcquiredEventArgs {} |
| impl ::core::fmt::Debug for RadialControllerControlAcquiredEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerControlAcquiredEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerControlAcquiredEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialControllerControlAcquiredEventArgs;{206aa439-e651-11e5-bf62-2c27d7404e85})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialControllerControlAcquiredEventArgs { |
| type Vtable = IRadialControllerControlAcquiredEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialControllerControlAcquiredEventArgs { |
| const IID: ::windows::core::GUID = <IRadialControllerControlAcquiredEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialControllerControlAcquiredEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.RadialControllerControlAcquiredEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(RadialControllerControlAcquiredEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialControllerControlAcquiredEventArgs {} |
| unsafe impl ::core::marker::Sync for RadialControllerControlAcquiredEventArgs {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialControllerMenu(::windows::core::IUnknown); |
| impl RadialControllerMenu { |
| #[doc = "*Required features: `\"Foundation_Collections\"`*"] |
| #[cfg(feature = "Foundation_Collections")] |
| pub fn Items(&self) -> ::windows::core::Result<super::super::Foundation::Collections::IVector<RadialControllerMenuItem>> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Items)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Collections::IVector<RadialControllerMenuItem>>(result__) |
| } |
| } |
| pub fn IsEnabled(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsEnabled)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetIsEnabled)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| pub fn GetSelectedMenuItem(&self) -> ::windows::core::Result<RadialControllerMenuItem> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).GetSelectedMenuItem)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialControllerMenuItem>(result__) |
| } |
| } |
| pub fn SelectMenuItem(&self, menuitem: &RadialControllerMenuItem) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SelectMenuItem)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(menuitem)).ok() } |
| } |
| pub fn TrySelectPreviouslySelectedMenuItem(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).TrySelectPreviouslySelectedMenuItem)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for RadialControllerMenu { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialControllerMenu { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialControllerMenu {} |
| impl ::core::fmt::Debug for RadialControllerMenu { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerMenu").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerMenu { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialControllerMenu;{8506b35d-f640-4412-aba0-bad077e5ea8a})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialControllerMenu { |
| type Vtable = IRadialControllerMenu_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialControllerMenu { |
| const IID: ::windows::core::GUID = <IRadialControllerMenu as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialControllerMenu { |
| const NAME: &'static str = "Windows.UI.Input.RadialControllerMenu"; |
| } |
| ::windows::core::interface_hierarchy!(RadialControllerMenu, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialControllerMenu {} |
| unsafe impl ::core::marker::Sync for RadialControllerMenu {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialControllerMenuItem(::windows::core::IUnknown); |
| impl RadialControllerMenuItem { |
| pub fn DisplayText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).DisplayText)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) |
| } |
| } |
| pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Tag)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) |
| } |
| } |
| pub fn SetTag<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> |
| where |
| P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IInspectable>>, |
| { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetTag)(::windows::core::Vtable::as_raw(this), value.into().abi()).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Invoked(&self, handler: &super::super::Foundation::TypedEventHandler<RadialControllerMenuItem, ::windows::core::IInspectable>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Invoked)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveInvoked(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveInvoked)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Storage_Streams\"`*"] |
| #[cfg(feature = "Storage_Streams")] |
| pub fn CreateFromIcon(displaytext: &::windows::core::HSTRING, icon: &super::super::Storage::Streams::RandomAccessStreamReference) -> ::windows::core::Result<RadialControllerMenuItem> { |
| Self::IRadialControllerMenuItemStatics(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CreateFromIcon)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(displaytext), ::core::mem::transmute_copy(icon), result__.as_mut_ptr()).from_abi::<RadialControllerMenuItem>(result__) |
| }) |
| } |
| pub fn CreateFromKnownIcon(displaytext: &::windows::core::HSTRING, value: RadialControllerMenuKnownIcon) -> ::windows::core::Result<RadialControllerMenuItem> { |
| Self::IRadialControllerMenuItemStatics(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CreateFromKnownIcon)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(displaytext), value, result__.as_mut_ptr()).from_abi::<RadialControllerMenuItem>(result__) |
| }) |
| } |
| pub fn CreateFromFontGlyph(displaytext: &::windows::core::HSTRING, glyph: &::windows::core::HSTRING, fontfamily: &::windows::core::HSTRING) -> ::windows::core::Result<RadialControllerMenuItem> { |
| Self::IRadialControllerMenuItemStatics2(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CreateFromFontGlyph)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(displaytext), ::core::mem::transmute_copy(glyph), ::core::mem::transmute_copy(fontfamily), result__.as_mut_ptr()).from_abi::<RadialControllerMenuItem>(result__) |
| }) |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn CreateFromFontGlyphWithUri(displaytext: &::windows::core::HSTRING, glyph: &::windows::core::HSTRING, fontfamily: &::windows::core::HSTRING, fonturi: &super::super::Foundation::Uri) -> ::windows::core::Result<RadialControllerMenuItem> { |
| Self::IRadialControllerMenuItemStatics2(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CreateFromFontGlyphWithUri)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(displaytext), ::core::mem::transmute_copy(glyph), ::core::mem::transmute_copy(fontfamily), ::core::mem::transmute_copy(fonturi), result__.as_mut_ptr()).from_abi::<RadialControllerMenuItem>(result__) |
| }) |
| } |
| #[doc(hidden)] |
| pub fn IRadialControllerMenuItemStatics<R, F: FnOnce(&IRadialControllerMenuItemStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::core::FactoryCache<RadialControllerMenuItem, IRadialControllerMenuItemStatics> = ::windows::core::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| #[doc(hidden)] |
| pub fn IRadialControllerMenuItemStatics2<R, F: FnOnce(&IRadialControllerMenuItemStatics2) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::core::FactoryCache<RadialControllerMenuItem, IRadialControllerMenuItemStatics2> = ::windows::core::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| } |
| impl ::core::clone::Clone for RadialControllerMenuItem { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialControllerMenuItem { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialControllerMenuItem {} |
| impl ::core::fmt::Debug for RadialControllerMenuItem { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerMenuItem").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerMenuItem { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialControllerMenuItem;{c80fc98d-ad0b-4c9c-8f2f-136a2373a6ba})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialControllerMenuItem { |
| type Vtable = IRadialControllerMenuItem_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialControllerMenuItem { |
| const IID: ::windows::core::GUID = <IRadialControllerMenuItem as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialControllerMenuItem { |
| const NAME: &'static str = "Windows.UI.Input.RadialControllerMenuItem"; |
| } |
| ::windows::core::interface_hierarchy!(RadialControllerMenuItem, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialControllerMenuItem {} |
| unsafe impl ::core::marker::Sync for RadialControllerMenuItem {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialControllerRotationChangedEventArgs(::windows::core::IUnknown); |
| impl RadialControllerRotationChangedEventArgs { |
| pub fn RotationDeltaInDegrees(&self) -> ::windows::core::Result<f64> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).RotationDeltaInDegrees)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<f64>(result__) |
| } |
| } |
| pub fn Contact(&self) -> ::windows::core::Result<RadialControllerScreenContact> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Contact)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialControllerScreenContact>(result__) |
| } |
| } |
| pub fn IsButtonPressed(&self) -> ::windows::core::Result<bool> { |
| let this = &::windows::core::Interface::cast::<IRadialControllerRotationChangedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsButtonPressed)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Devices_Haptics\"`*"] |
| #[cfg(feature = "Devices_Haptics")] |
| pub fn SimpleHapticsController(&self) -> ::windows::core::Result<super::super::Devices::Haptics::SimpleHapticsController> { |
| let this = &::windows::core::Interface::cast::<IRadialControllerRotationChangedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).SimpleHapticsController)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Haptics::SimpleHapticsController>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for RadialControllerRotationChangedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialControllerRotationChangedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialControllerRotationChangedEventArgs {} |
| impl ::core::fmt::Debug for RadialControllerRotationChangedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerRotationChangedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerRotationChangedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialControllerRotationChangedEventArgs;{206aa435-e651-11e5-bf62-2c27d7404e85})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialControllerRotationChangedEventArgs { |
| type Vtable = IRadialControllerRotationChangedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialControllerRotationChangedEventArgs { |
| const IID: ::windows::core::GUID = <IRadialControllerRotationChangedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialControllerRotationChangedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.RadialControllerRotationChangedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(RadialControllerRotationChangedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialControllerRotationChangedEventArgs {} |
| unsafe impl ::core::marker::Sync for RadialControllerRotationChangedEventArgs {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialControllerScreenContact(::windows::core::IUnknown); |
| impl RadialControllerScreenContact { |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Bounds(&self) -> ::windows::core::Result<super::super::Foundation::Rect> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Bounds)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Rect>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Position(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Position)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for RadialControllerScreenContact { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialControllerScreenContact { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialControllerScreenContact {} |
| impl ::core::fmt::Debug for RadialControllerScreenContact { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerScreenContact").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerScreenContact { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialControllerScreenContact;{206aa434-e651-11e5-bf62-2c27d7404e85})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialControllerScreenContact { |
| type Vtable = IRadialControllerScreenContact_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialControllerScreenContact { |
| const IID: ::windows::core::GUID = <IRadialControllerScreenContact as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialControllerScreenContact { |
| const NAME: &'static str = "Windows.UI.Input.RadialControllerScreenContact"; |
| } |
| ::windows::core::interface_hierarchy!(RadialControllerScreenContact, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialControllerScreenContact {} |
| unsafe impl ::core::marker::Sync for RadialControllerScreenContact {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialControllerScreenContactContinuedEventArgs(::windows::core::IUnknown); |
| impl RadialControllerScreenContactContinuedEventArgs { |
| pub fn Contact(&self) -> ::windows::core::Result<RadialControllerScreenContact> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Contact)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialControllerScreenContact>(result__) |
| } |
| } |
| pub fn IsButtonPressed(&self) -> ::windows::core::Result<bool> { |
| let this = &::windows::core::Interface::cast::<IRadialControllerScreenContactContinuedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsButtonPressed)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Devices_Haptics\"`*"] |
| #[cfg(feature = "Devices_Haptics")] |
| pub fn SimpleHapticsController(&self) -> ::windows::core::Result<super::super::Devices::Haptics::SimpleHapticsController> { |
| let this = &::windows::core::Interface::cast::<IRadialControllerScreenContactContinuedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).SimpleHapticsController)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Haptics::SimpleHapticsController>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for RadialControllerScreenContactContinuedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialControllerScreenContactContinuedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialControllerScreenContactContinuedEventArgs {} |
| impl ::core::fmt::Debug for RadialControllerScreenContactContinuedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerScreenContactContinuedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerScreenContactContinuedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialControllerScreenContactContinuedEventArgs;{206aa437-e651-11e5-bf62-2c27d7404e85})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialControllerScreenContactContinuedEventArgs { |
| type Vtable = IRadialControllerScreenContactContinuedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialControllerScreenContactContinuedEventArgs { |
| const IID: ::windows::core::GUID = <IRadialControllerScreenContactContinuedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialControllerScreenContactContinuedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.RadialControllerScreenContactContinuedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(RadialControllerScreenContactContinuedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialControllerScreenContactContinuedEventArgs {} |
| unsafe impl ::core::marker::Sync for RadialControllerScreenContactContinuedEventArgs {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialControllerScreenContactEndedEventArgs(::windows::core::IUnknown); |
| impl RadialControllerScreenContactEndedEventArgs { |
| pub fn IsButtonPressed(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsButtonPressed)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Devices_Haptics\"`*"] |
| #[cfg(feature = "Devices_Haptics")] |
| pub fn SimpleHapticsController(&self) -> ::windows::core::Result<super::super::Devices::Haptics::SimpleHapticsController> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).SimpleHapticsController)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Haptics::SimpleHapticsController>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for RadialControllerScreenContactEndedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialControllerScreenContactEndedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialControllerScreenContactEndedEventArgs {} |
| impl ::core::fmt::Debug for RadialControllerScreenContactEndedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerScreenContactEndedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerScreenContactEndedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialControllerScreenContactEndedEventArgs;{3d577ef2-3cee-11e6-b535-001bdc06ab3b})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialControllerScreenContactEndedEventArgs { |
| type Vtable = IRadialControllerScreenContactEndedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialControllerScreenContactEndedEventArgs { |
| const IID: ::windows::core::GUID = <IRadialControllerScreenContactEndedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialControllerScreenContactEndedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.RadialControllerScreenContactEndedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(RadialControllerScreenContactEndedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialControllerScreenContactEndedEventArgs {} |
| unsafe impl ::core::marker::Sync for RadialControllerScreenContactEndedEventArgs {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RadialControllerScreenContactStartedEventArgs(::windows::core::IUnknown); |
| impl RadialControllerScreenContactStartedEventArgs { |
| pub fn Contact(&self) -> ::windows::core::Result<RadialControllerScreenContact> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Contact)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<RadialControllerScreenContact>(result__) |
| } |
| } |
| pub fn IsButtonPressed(&self) -> ::windows::core::Result<bool> { |
| let this = &::windows::core::Interface::cast::<IRadialControllerScreenContactStartedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsButtonPressed)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Devices_Haptics\"`*"] |
| #[cfg(feature = "Devices_Haptics")] |
| pub fn SimpleHapticsController(&self) -> ::windows::core::Result<super::super::Devices::Haptics::SimpleHapticsController> { |
| let this = &::windows::core::Interface::cast::<IRadialControllerScreenContactStartedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).SimpleHapticsController)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Haptics::SimpleHapticsController>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for RadialControllerScreenContactStartedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RadialControllerScreenContactStartedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RadialControllerScreenContactStartedEventArgs {} |
| impl ::core::fmt::Debug for RadialControllerScreenContactStartedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerScreenContactStartedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerScreenContactStartedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RadialControllerScreenContactStartedEventArgs;{206aa436-e651-11e5-bf62-2c27d7404e85})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RadialControllerScreenContactStartedEventArgs { |
| type Vtable = IRadialControllerScreenContactStartedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RadialControllerScreenContactStartedEventArgs { |
| const IID: ::windows::core::GUID = <IRadialControllerScreenContactStartedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RadialControllerScreenContactStartedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.RadialControllerScreenContactStartedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(RadialControllerScreenContactStartedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for RadialControllerScreenContactStartedEventArgs {} |
| unsafe impl ::core::marker::Sync for RadialControllerScreenContactStartedEventArgs {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct RightTappedEventArgs(::windows::core::IUnknown); |
| impl RightTappedEventArgs { |
| #[doc = "*Required features: `\"Devices_Input\"`*"] |
| #[cfg(feature = "Devices_Input")] |
| pub fn PointerDeviceType(&self) -> ::windows::core::Result<super::super::Devices::Input::PointerDeviceType> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PointerDeviceType)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Input::PointerDeviceType>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Position(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Position)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| pub fn ContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<IRightTappedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for RightTappedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for RightTappedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for RightTappedEventArgs {} |
| impl ::core::fmt::Debug for RightTappedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RightTappedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RightTappedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.RightTappedEventArgs;{4cbf40bd-af7a-4a36-9476-b1dce141709a})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for RightTappedEventArgs { |
| type Vtable = IRightTappedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for RightTappedEventArgs { |
| const IID: ::windows::core::GUID = <IRightTappedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for RightTappedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.RightTappedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(RightTappedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct SystemButtonEventController(::windows::core::IUnknown); |
| impl SystemButtonEventController { |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Close(&self) -> ::windows::core::Result<()> { |
| let this = &::windows::core::Interface::cast::<super::super::Foundation::IClosable>(self)?; |
| unsafe { (::windows::core::Vtable::vtable(this).Close)(::windows::core::Vtable::as_raw(this)).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn SystemFunctionButtonPressed(&self, handler: &super::super::Foundation::TypedEventHandler<SystemButtonEventController, SystemFunctionButtonEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).SystemFunctionButtonPressed)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveSystemFunctionButtonPressed(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveSystemFunctionButtonPressed)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn SystemFunctionButtonReleased(&self, handler: &super::super::Foundation::TypedEventHandler<SystemButtonEventController, SystemFunctionButtonEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).SystemFunctionButtonReleased)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveSystemFunctionButtonReleased(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveSystemFunctionButtonReleased)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn SystemFunctionLockChanged(&self, handler: &super::super::Foundation::TypedEventHandler<SystemButtonEventController, SystemFunctionLockChangedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).SystemFunctionLockChanged)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveSystemFunctionLockChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveSystemFunctionLockChanged)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn SystemFunctionLockIndicatorChanged(&self, handler: &super::super::Foundation::TypedEventHandler<SystemButtonEventController, SystemFunctionLockIndicatorChangedEventArgs>) -> ::windows::core::Result<super::super::Foundation::EventRegistrationToken> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).SystemFunctionLockIndicatorChanged)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(handler), result__.as_mut_ptr()).from_abi::<super::super::Foundation::EventRegistrationToken>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn RemoveSystemFunctionLockIndicatorChanged(&self, token: super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).RemoveSystemFunctionLockIndicatorChanged)(::windows::core::Vtable::as_raw(this), token).ok() } |
| } |
| #[doc = "*Required features: `\"System\"`*"] |
| #[cfg(feature = "System")] |
| pub fn CreateForDispatcherQueue(queue: &super::super::System::DispatcherQueue) -> ::windows::core::Result<SystemButtonEventController> { |
| Self::ISystemButtonEventControllerStatics(|this| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).CreateForDispatcherQueue)(::windows::core::Vtable::as_raw(this), ::core::mem::transmute_copy(queue), result__.as_mut_ptr()).from_abi::<SystemButtonEventController>(result__) |
| }) |
| } |
| #[doc(hidden)] |
| pub fn ISystemButtonEventControllerStatics<R, F: FnOnce(&ISystemButtonEventControllerStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> { |
| static SHARED: ::windows::core::FactoryCache<SystemButtonEventController, ISystemButtonEventControllerStatics> = ::windows::core::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| } |
| impl ::core::clone::Clone for SystemButtonEventController { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for SystemButtonEventController { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for SystemButtonEventController {} |
| impl ::core::fmt::Debug for SystemButtonEventController { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("SystemButtonEventController").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for SystemButtonEventController { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.SystemButtonEventController;{59b893a9-73bc-52b5-ba41-82511b2cb46c})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for SystemButtonEventController { |
| type Vtable = ISystemButtonEventController_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for SystemButtonEventController { |
| const IID: ::windows::core::GUID = <ISystemButtonEventController as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for SystemButtonEventController { |
| const NAME: &'static str = "Windows.UI.Input.SystemButtonEventController"; |
| } |
| ::windows::core::interface_hierarchy!(SystemButtonEventController, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[cfg(feature = "Foundation")] |
| impl ::core::convert::TryFrom<SystemButtonEventController> for super::super::Foundation::IClosable { |
| type Error = ::windows::core::Error; |
| fn try_from(value: SystemButtonEventController) -> ::windows::core::Result<Self> { |
| ::core::convert::TryFrom::try_from(&value) |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| impl ::core::convert::TryFrom<&SystemButtonEventController> for super::super::Foundation::IClosable { |
| type Error = ::windows::core::Error; |
| fn try_from(value: &SystemButtonEventController) -> ::windows::core::Result<Self> { |
| ::windows::core::Interface::cast(value) |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| impl<'a> ::core::convert::TryFrom<&SystemButtonEventController> for ::windows::core::InParam<'a, super::super::Foundation::IClosable> { |
| type Error = ::windows::core::Error; |
| fn try_from(value: &SystemButtonEventController) -> ::windows::core::Result<Self> { |
| let item = ::std::convert::TryInto::try_into(value)?; |
| Ok(::windows::core::InParam::owned(item)) |
| } |
| } |
| impl ::core::convert::From<SystemButtonEventController> for AttachableInputObject { |
| fn from(value: SystemButtonEventController) -> Self { |
| ::core::convert::From::from(&value) |
| } |
| } |
| impl ::core::convert::From<&SystemButtonEventController> for AttachableInputObject { |
| fn from(value: &SystemButtonEventController) -> Self { |
| ::windows::core::Interface::cast(value).unwrap() |
| } |
| } |
| impl<'a> ::core::convert::From<&SystemButtonEventController> for ::windows::core::InParam<'a, AttachableInputObject> { |
| fn from(value: &SystemButtonEventController) -> Self { |
| ::windows::core::InParam::owned(value.into()) |
| } |
| } |
| unsafe impl ::core::marker::Send for SystemButtonEventController {} |
| unsafe impl ::core::marker::Sync for SystemButtonEventController {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct SystemFunctionButtonEventArgs(::windows::core::IUnknown); |
| impl SystemFunctionButtonEventArgs { |
| pub fn Timestamp(&self) -> ::windows::core::Result<u64> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Timestamp)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u64>(result__) |
| } |
| } |
| pub fn Handled(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Handled)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn SetHandled(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetHandled)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| } |
| impl ::core::clone::Clone for SystemFunctionButtonEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for SystemFunctionButtonEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for SystemFunctionButtonEventArgs {} |
| impl ::core::fmt::Debug for SystemFunctionButtonEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("SystemFunctionButtonEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for SystemFunctionButtonEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.SystemFunctionButtonEventArgs;{4833896f-80d1-5dd6-92a7-62a508ffef5a})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for SystemFunctionButtonEventArgs { |
| type Vtable = ISystemFunctionButtonEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for SystemFunctionButtonEventArgs { |
| const IID: ::windows::core::GUID = <ISystemFunctionButtonEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for SystemFunctionButtonEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.SystemFunctionButtonEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(SystemFunctionButtonEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for SystemFunctionButtonEventArgs {} |
| unsafe impl ::core::marker::Sync for SystemFunctionButtonEventArgs {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct SystemFunctionLockChangedEventArgs(::windows::core::IUnknown); |
| impl SystemFunctionLockChangedEventArgs { |
| pub fn Timestamp(&self) -> ::windows::core::Result<u64> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Timestamp)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u64>(result__) |
| } |
| } |
| pub fn IsLocked(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsLocked)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn Handled(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Handled)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn SetHandled(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetHandled)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| } |
| impl ::core::clone::Clone for SystemFunctionLockChangedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for SystemFunctionLockChangedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for SystemFunctionLockChangedEventArgs {} |
| impl ::core::fmt::Debug for SystemFunctionLockChangedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("SystemFunctionLockChangedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for SystemFunctionLockChangedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.SystemFunctionLockChangedEventArgs;{cd040608-fcf9-585c-beab-f1d2eaf364ab})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for SystemFunctionLockChangedEventArgs { |
| type Vtable = ISystemFunctionLockChangedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for SystemFunctionLockChangedEventArgs { |
| const IID: ::windows::core::GUID = <ISystemFunctionLockChangedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for SystemFunctionLockChangedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.SystemFunctionLockChangedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(SystemFunctionLockChangedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for SystemFunctionLockChangedEventArgs {} |
| unsafe impl ::core::marker::Sync for SystemFunctionLockChangedEventArgs {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct SystemFunctionLockIndicatorChangedEventArgs(::windows::core::IUnknown); |
| impl SystemFunctionLockIndicatorChangedEventArgs { |
| pub fn Timestamp(&self) -> ::windows::core::Result<u64> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Timestamp)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u64>(result__) |
| } |
| } |
| pub fn IsIndicatorOn(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).IsIndicatorOn)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn Handled(&self) -> ::windows::core::Result<bool> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Handled)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<bool>(result__) |
| } |
| } |
| pub fn SetHandled(&self, value: bool) -> ::windows::core::Result<()> { |
| let this = self; |
| unsafe { (::windows::core::Vtable::vtable(this).SetHandled)(::windows::core::Vtable::as_raw(this), value).ok() } |
| } |
| } |
| impl ::core::clone::Clone for SystemFunctionLockIndicatorChangedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for SystemFunctionLockIndicatorChangedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for SystemFunctionLockIndicatorChangedEventArgs {} |
| impl ::core::fmt::Debug for SystemFunctionLockIndicatorChangedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("SystemFunctionLockIndicatorChangedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for SystemFunctionLockIndicatorChangedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.SystemFunctionLockIndicatorChangedEventArgs;{b212b94e-7a6f-58ae-b304-bae61d0371b9})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for SystemFunctionLockIndicatorChangedEventArgs { |
| type Vtable = ISystemFunctionLockIndicatorChangedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for SystemFunctionLockIndicatorChangedEventArgs { |
| const IID: ::windows::core::GUID = <ISystemFunctionLockIndicatorChangedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for SystemFunctionLockIndicatorChangedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.SystemFunctionLockIndicatorChangedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(SystemFunctionLockIndicatorChangedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| unsafe impl ::core::marker::Send for SystemFunctionLockIndicatorChangedEventArgs {} |
| unsafe impl ::core::marker::Sync for SystemFunctionLockIndicatorChangedEventArgs {} |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| pub struct TappedEventArgs(::windows::core::IUnknown); |
| impl TappedEventArgs { |
| #[doc = "*Required features: `\"Devices_Input\"`*"] |
| #[cfg(feature = "Devices_Input")] |
| pub fn PointerDeviceType(&self) -> ::windows::core::Result<super::super::Devices::Input::PointerDeviceType> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).PointerDeviceType)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Devices::Input::PointerDeviceType>(result__) |
| } |
| } |
| #[doc = "*Required features: `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub fn Position(&self) -> ::windows::core::Result<super::super::Foundation::Point> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).Position)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<super::super::Foundation::Point>(result__) |
| } |
| } |
| pub fn TapCount(&self) -> ::windows::core::Result<u32> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).TapCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| pub fn ContactCount(&self) -> ::windows::core::Result<u32> { |
| let this = &::windows::core::Interface::cast::<ITappedEventArgs2>(self)?; |
| unsafe { |
| let mut result__ = ::core::mem::MaybeUninit::zeroed(); |
| (::windows::core::Vtable::vtable(this).ContactCount)(::windows::core::Vtable::as_raw(this), result__.as_mut_ptr()).from_abi::<u32>(result__) |
| } |
| } |
| } |
| impl ::core::clone::Clone for TappedEventArgs { |
| fn clone(&self) -> Self { |
| Self(self.0.clone()) |
| } |
| } |
| impl ::core::cmp::PartialEq for TappedEventArgs { |
| fn eq(&self, other: &Self) -> bool { |
| self.0 == other.0 |
| } |
| } |
| impl ::core::cmp::Eq for TappedEventArgs {} |
| impl ::core::fmt::Debug for TappedEventArgs { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("TappedEventArgs").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for TappedEventArgs { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Input.TappedEventArgs;{cfa126e4-253a-4c3c-953b-395c37aed309})"); |
| type DefaultType = ::core::option::Option<Self>; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| from.as_ref().cloned().ok_or(::windows::core::Error::OK) |
| } |
| } |
| unsafe impl ::windows::core::Vtable for TappedEventArgs { |
| type Vtable = ITappedEventArgs_Vtbl; |
| } |
| unsafe impl ::windows::core::Interface for TappedEventArgs { |
| const IID: ::windows::core::GUID = <ITappedEventArgs as ::windows::core::Interface>::IID; |
| } |
| impl ::windows::core::RuntimeName for TappedEventArgs { |
| const NAME: &'static str = "Windows.UI.Input.TappedEventArgs"; |
| } |
| ::windows::core::interface_hierarchy!(TappedEventArgs, ::windows::core::IUnknown, ::windows::core::IInspectable); |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct CrossSlidingState(pub i32); |
| impl CrossSlidingState { |
| pub const Started: Self = Self(0i32); |
| pub const Dragging: Self = Self(1i32); |
| pub const Selecting: Self = Self(2i32); |
| pub const SelectSpeedBumping: Self = Self(3i32); |
| pub const SpeedBumping: Self = Self(4i32); |
| pub const Rearranging: Self = Self(5i32); |
| pub const Completed: Self = Self(6i32); |
| } |
| impl ::core::marker::Copy for CrossSlidingState {} |
| impl ::core::clone::Clone for CrossSlidingState { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for CrossSlidingState { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| unsafe impl ::windows::core::Abi for CrossSlidingState { |
| type Abi = Self; |
| } |
| impl ::core::fmt::Debug for CrossSlidingState { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("CrossSlidingState").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for CrossSlidingState { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Input.CrossSlidingState;i4)"); |
| type DefaultType = Self; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| Ok(*from) |
| } |
| } |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct DraggingState(pub i32); |
| impl DraggingState { |
| pub const Started: Self = Self(0i32); |
| pub const Continuing: Self = Self(1i32); |
| pub const Completed: Self = Self(2i32); |
| } |
| impl ::core::marker::Copy for DraggingState {} |
| impl ::core::clone::Clone for DraggingState { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for DraggingState { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| unsafe impl ::windows::core::Abi for DraggingState { |
| type Abi = Self; |
| } |
| impl ::core::fmt::Debug for DraggingState { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("DraggingState").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for DraggingState { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Input.DraggingState;i4)"); |
| type DefaultType = Self; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| Ok(*from) |
| } |
| } |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct EdgeGestureKind(pub i32); |
| impl EdgeGestureKind { |
| pub const Touch: Self = Self(0i32); |
| pub const Keyboard: Self = Self(1i32); |
| pub const Mouse: Self = Self(2i32); |
| } |
| impl ::core::marker::Copy for EdgeGestureKind {} |
| impl ::core::clone::Clone for EdgeGestureKind { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for EdgeGestureKind { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| unsafe impl ::windows::core::Abi for EdgeGestureKind { |
| type Abi = Self; |
| } |
| impl ::core::fmt::Debug for EdgeGestureKind { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("EdgeGestureKind").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for EdgeGestureKind { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Input.EdgeGestureKind;i4)"); |
| type DefaultType = Self; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| Ok(*from) |
| } |
| } |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct GazeInputAccessStatus(pub i32); |
| impl GazeInputAccessStatus { |
| pub const Unspecified: Self = Self(0i32); |
| pub const Allowed: Self = Self(1i32); |
| pub const DeniedByUser: Self = Self(2i32); |
| pub const DeniedBySystem: Self = Self(3i32); |
| } |
| impl ::core::marker::Copy for GazeInputAccessStatus {} |
| impl ::core::clone::Clone for GazeInputAccessStatus { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for GazeInputAccessStatus { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| unsafe impl ::windows::core::Abi for GazeInputAccessStatus { |
| type Abi = Self; |
| } |
| impl ::core::fmt::Debug for GazeInputAccessStatus { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("GazeInputAccessStatus").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for GazeInputAccessStatus { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Input.GazeInputAccessStatus;i4)"); |
| type DefaultType = Self; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| Ok(*from) |
| } |
| } |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct GestureSettings(pub u32); |
| impl GestureSettings { |
| pub const None: Self = Self(0u32); |
| pub const Tap: Self = Self(1u32); |
| pub const DoubleTap: Self = Self(2u32); |
| pub const Hold: Self = Self(4u32); |
| pub const HoldWithMouse: Self = Self(8u32); |
| pub const RightTap: Self = Self(16u32); |
| pub const Drag: Self = Self(32u32); |
| pub const ManipulationTranslateX: Self = Self(64u32); |
| pub const ManipulationTranslateY: Self = Self(128u32); |
| pub const ManipulationTranslateRailsX: Self = Self(256u32); |
| pub const ManipulationTranslateRailsY: Self = Self(512u32); |
| pub const ManipulationRotate: Self = Self(1024u32); |
| pub const ManipulationScale: Self = Self(2048u32); |
| pub const ManipulationTranslateInertia: Self = Self(4096u32); |
| pub const ManipulationRotateInertia: Self = Self(8192u32); |
| pub const ManipulationScaleInertia: Self = Self(16384u32); |
| pub const CrossSlide: Self = Self(32768u32); |
| pub const ManipulationMultipleFingerPanning: Self = Self(65536u32); |
| } |
| impl ::core::marker::Copy for GestureSettings {} |
| impl ::core::clone::Clone for GestureSettings { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for GestureSettings { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| unsafe impl ::windows::core::Abi for GestureSettings { |
| type Abi = Self; |
| } |
| impl ::core::fmt::Debug for GestureSettings { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("GestureSettings").field(&self.0).finish() |
| } |
| } |
| impl ::core::ops::BitOr for GestureSettings { |
| type Output = Self; |
| fn bitor(self, other: Self) -> Self { |
| Self(self.0 | other.0) |
| } |
| } |
| impl ::core::ops::BitAnd for GestureSettings { |
| type Output = Self; |
| fn bitand(self, other: Self) -> Self { |
| Self(self.0 & other.0) |
| } |
| } |
| impl ::core::ops::BitOrAssign for GestureSettings { |
| fn bitor_assign(&mut self, other: Self) { |
| self.0.bitor_assign(other.0) |
| } |
| } |
| impl ::core::ops::BitAndAssign for GestureSettings { |
| fn bitand_assign(&mut self, other: Self) { |
| self.0.bitand_assign(other.0) |
| } |
| } |
| impl ::core::ops::Not for GestureSettings { |
| type Output = Self; |
| fn not(self) -> Self { |
| Self(self.0.not()) |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for GestureSettings { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Input.GestureSettings;u4)"); |
| type DefaultType = Self; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| Ok(*from) |
| } |
| } |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct HoldingState(pub i32); |
| impl HoldingState { |
| pub const Started: Self = Self(0i32); |
| pub const Completed: Self = Self(1i32); |
| pub const Canceled: Self = Self(2i32); |
| } |
| impl ::core::marker::Copy for HoldingState {} |
| impl ::core::clone::Clone for HoldingState { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for HoldingState { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| unsafe impl ::windows::core::Abi for HoldingState { |
| type Abi = Self; |
| } |
| impl ::core::fmt::Debug for HoldingState { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("HoldingState").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for HoldingState { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Input.HoldingState;i4)"); |
| type DefaultType = Self; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| Ok(*from) |
| } |
| } |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct InputActivationState(pub i32); |
| impl InputActivationState { |
| pub const None: Self = Self(0i32); |
| pub const Deactivated: Self = Self(1i32); |
| pub const ActivatedNotForeground: Self = Self(2i32); |
| pub const ActivatedInForeground: Self = Self(3i32); |
| } |
| impl ::core::marker::Copy for InputActivationState {} |
| impl ::core::clone::Clone for InputActivationState { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for InputActivationState { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| unsafe impl ::windows::core::Abi for InputActivationState { |
| type Abi = Self; |
| } |
| impl ::core::fmt::Debug for InputActivationState { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("InputActivationState").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for InputActivationState { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Input.InputActivationState;i4)"); |
| type DefaultType = Self; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| Ok(*from) |
| } |
| } |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct PointerUpdateKind(pub i32); |
| impl PointerUpdateKind { |
| pub const Other: Self = Self(0i32); |
| pub const LeftButtonPressed: Self = Self(1i32); |
| pub const LeftButtonReleased: Self = Self(2i32); |
| pub const RightButtonPressed: Self = Self(3i32); |
| pub const RightButtonReleased: Self = Self(4i32); |
| pub const MiddleButtonPressed: Self = Self(5i32); |
| pub const MiddleButtonReleased: Self = Self(6i32); |
| pub const XButton1Pressed: Self = Self(7i32); |
| pub const XButton1Released: Self = Self(8i32); |
| pub const XButton2Pressed: Self = Self(9i32); |
| pub const XButton2Released: Self = Self(10i32); |
| } |
| impl ::core::marker::Copy for PointerUpdateKind {} |
| impl ::core::clone::Clone for PointerUpdateKind { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for PointerUpdateKind { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| unsafe impl ::windows::core::Abi for PointerUpdateKind { |
| type Abi = Self; |
| } |
| impl ::core::fmt::Debug for PointerUpdateKind { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("PointerUpdateKind").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for PointerUpdateKind { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Input.PointerUpdateKind;i4)"); |
| type DefaultType = Self; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| Ok(*from) |
| } |
| } |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct RadialControllerMenuKnownIcon(pub i32); |
| impl RadialControllerMenuKnownIcon { |
| pub const Scroll: Self = Self(0i32); |
| pub const Zoom: Self = Self(1i32); |
| pub const UndoRedo: Self = Self(2i32); |
| pub const Volume: Self = Self(3i32); |
| pub const NextPreviousTrack: Self = Self(4i32); |
| pub const Ruler: Self = Self(5i32); |
| pub const InkColor: Self = Self(6i32); |
| pub const InkThickness: Self = Self(7i32); |
| pub const PenType: Self = Self(8i32); |
| } |
| impl ::core::marker::Copy for RadialControllerMenuKnownIcon {} |
| impl ::core::clone::Clone for RadialControllerMenuKnownIcon { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for RadialControllerMenuKnownIcon { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| unsafe impl ::windows::core::Abi for RadialControllerMenuKnownIcon { |
| type Abi = Self; |
| } |
| impl ::core::fmt::Debug for RadialControllerMenuKnownIcon { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerMenuKnownIcon").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerMenuKnownIcon { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Input.RadialControllerMenuKnownIcon;i4)"); |
| type DefaultType = Self; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| Ok(*from) |
| } |
| } |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] |
| pub struct RadialControllerSystemMenuItemKind(pub i32); |
| impl RadialControllerSystemMenuItemKind { |
| pub const Scroll: Self = Self(0i32); |
| pub const Zoom: Self = Self(1i32); |
| pub const UndoRedo: Self = Self(2i32); |
| pub const Volume: Self = Self(3i32); |
| pub const NextPreviousTrack: Self = Self(4i32); |
| } |
| impl ::core::marker::Copy for RadialControllerSystemMenuItemKind {} |
| impl ::core::clone::Clone for RadialControllerSystemMenuItemKind { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::default::Default for RadialControllerSystemMenuItemKind { |
| fn default() -> Self { |
| Self(0) |
| } |
| } |
| unsafe impl ::windows::core::Abi for RadialControllerSystemMenuItemKind { |
| type Abi = Self; |
| } |
| impl ::core::fmt::Debug for RadialControllerSystemMenuItemKind { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_tuple("RadialControllerSystemMenuItemKind").field(&self.0).finish() |
| } |
| } |
| unsafe impl ::windows::core::RuntimeType for RadialControllerSystemMenuItemKind { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Input.RadialControllerSystemMenuItemKind;i4)"); |
| type DefaultType = Self; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| Ok(*from) |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"UI_Input\"`*"] |
| pub struct CrossSlideThresholds { |
| pub SelectionStart: f32, |
| pub SpeedBumpStart: f32, |
| pub SpeedBumpEnd: f32, |
| pub RearrangeStart: f32, |
| } |
| impl ::core::marker::Copy for CrossSlideThresholds {} |
| impl ::core::clone::Clone for CrossSlideThresholds { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| impl ::core::fmt::Debug for CrossSlideThresholds { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("CrossSlideThresholds").field("SelectionStart", &self.SelectionStart).field("SpeedBumpStart", &self.SpeedBumpStart).field("SpeedBumpEnd", &self.SpeedBumpEnd).field("RearrangeStart", &self.RearrangeStart).finish() |
| } |
| } |
| unsafe impl ::windows::core::Abi for CrossSlideThresholds { |
| type Abi = Self; |
| } |
| unsafe impl ::windows::core::RuntimeType for CrossSlideThresholds { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"struct(Windows.UI.Input.CrossSlideThresholds;f4;f4;f4;f4)"); |
| type DefaultType = Self; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| Ok(*from) |
| } |
| } |
| impl ::core::cmp::PartialEq for CrossSlideThresholds { |
| fn eq(&self, other: &Self) -> bool { |
| unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<CrossSlideThresholds>()) == 0 } |
| } |
| } |
| impl ::core::cmp::Eq for CrossSlideThresholds {} |
| impl ::core::default::Default for CrossSlideThresholds { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"UI_Input\"`, `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub struct ManipulationDelta { |
| pub Translation: super::super::Foundation::Point, |
| pub Scale: f32, |
| pub Rotation: f32, |
| pub Expansion: f32, |
| } |
| #[cfg(feature = "Foundation")] |
| impl ::core::marker::Copy for ManipulationDelta {} |
| #[cfg(feature = "Foundation")] |
| impl ::core::clone::Clone for ManipulationDelta { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| impl ::core::fmt::Debug for ManipulationDelta { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("ManipulationDelta").field("Translation", &self.Translation).field("Scale", &self.Scale).field("Rotation", &self.Rotation).field("Expansion", &self.Expansion).finish() |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| unsafe impl ::windows::core::Abi for ManipulationDelta { |
| type Abi = Self; |
| } |
| #[cfg(feature = "Foundation")] |
| unsafe impl ::windows::core::RuntimeType for ManipulationDelta { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"struct(Windows.UI.Input.ManipulationDelta;struct(Windows.Foundation.Point;f4;f4);f4;f4;f4)"); |
| type DefaultType = Self; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| Ok(*from) |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| impl ::core::cmp::PartialEq for ManipulationDelta { |
| fn eq(&self, other: &Self) -> bool { |
| unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<ManipulationDelta>()) == 0 } |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| impl ::core::cmp::Eq for ManipulationDelta {} |
| #[cfg(feature = "Foundation")] |
| impl ::core::default::Default for ManipulationDelta { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[repr(C)] |
| #[doc = "*Required features: `\"UI_Input\"`, `\"Foundation\"`*"] |
| #[cfg(feature = "Foundation")] |
| pub struct ManipulationVelocities { |
| pub Linear: super::super::Foundation::Point, |
| pub Angular: f32, |
| pub Expansion: f32, |
| } |
| #[cfg(feature = "Foundation")] |
| impl ::core::marker::Copy for ManipulationVelocities {} |
| #[cfg(feature = "Foundation")] |
| impl ::core::clone::Clone for ManipulationVelocities { |
| fn clone(&self) -> Self { |
| *self |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| impl ::core::fmt::Debug for ManipulationVelocities { |
| fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { |
| f.debug_struct("ManipulationVelocities").field("Linear", &self.Linear).field("Angular", &self.Angular).field("Expansion", &self.Expansion).finish() |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| unsafe impl ::windows::core::Abi for ManipulationVelocities { |
| type Abi = Self; |
| } |
| #[cfg(feature = "Foundation")] |
| unsafe impl ::windows::core::RuntimeType for ManipulationVelocities { |
| const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"struct(Windows.UI.Input.ManipulationVelocities;struct(Windows.Foundation.Point;f4;f4);f4;f4)"); |
| type DefaultType = Self; |
| fn from_default(from: &Self::DefaultType) -> ::windows::core::Result<Self> { |
| Ok(*from) |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| impl ::core::cmp::PartialEq for ManipulationVelocities { |
| fn eq(&self, other: &Self) -> bool { |
| unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::<ManipulationVelocities>()) == 0 } |
| } |
| } |
| #[cfg(feature = "Foundation")] |
| impl ::core::cmp::Eq for ManipulationVelocities {} |
| #[cfg(feature = "Foundation")] |
| impl ::core::default::Default for ManipulationVelocities { |
| fn default() -> Self { |
| unsafe { ::core::mem::zeroed() } |
| } |
| } |
| #[cfg(feature = "implement")] |
| ::core::include!("impl.rs"); |